Commit Graph

74 Commits (fca4ee312e929a3e742b9c33a88dacbe19ba6218)

Author SHA1 Message Date
Julian Lam f909ed2541 feat: show editor in post diffs if available
Julian Lam d5578c9906 fix: tests breaking due to
Barış Soner Uşaklı ec5582b53c
feat: add privilege give/rescind hooks ()
* feat: add privilege give/rescind hooks

action:privileges.categories.give/rescind
action:privileges.global.give/rescind

breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find`

* fix: tests, privileges renamed
Barış Soner Uşaklı df2c785127 feat: add test for change post owner
Barış Soner Uşaklı 3e52557689 fix: change owner missing await
Barış Soner Uşaklı 1cedc4a0d6 feat: , allow post queue based on group
allow multiple select in ACP pages
Julian Lam 30a86ed553 fix: , dissociation on post purge
Baris Usakli 2abe244b6e fix: newPostEditDuration
Barış Soner Uşaklı 3c32d8600f
fix: No new posts ()
* feat: debug no-new-posts

* feat: add test for user delete

* fix: timeout for flag test

* feat: shorter
Barış Soner Uşaklı c0c6c652be feat: , finish post module
Barış Soner Uşaklı 1b2b308a7e feat: , posts module
Barış Soner Uşaklı 53e1b349ae
Change post owner ()
* feat: , allow array of keys for setObject

* feat: sortedSetRemoveBulk

* feat: test for bulk remove

* feat: , ability to change post ownership

* feat: , fix tid:<tid>:posters

* feat: , front end

* fix: , psql methods

* fix: add missing await

* fix: maybe psql
Julian Lam 8a6a58ee43
feat: added new admin option newbiePostEditDuration ()
* feat: added new admin option newbiePostEditDuration

Also:
  - Grammar-checked a couple language strings
  - Moved a couple form inputs around in new user restrictions
  - Added a test for the new option
  - fix: 'defore' typo
Barış Soner Uşaklı bd640a1107
Topic await errors ()
* feat: derp await

* feat: restore user.getSettings

* feat: cleanup

* feat: make tid const

* feat: cleanup

* fix: tests

* feat: deprecate filter:controllers.topic.get

* feat: rewrite post-index logic

* feat: change calculation to match others

* fix: use .async

* feat: remove try/catch wrapper
Barış Soner Uşaklı 035f624758
Remove implicit mod privs. closes ()
* feat: add upgrade script to give mods privs

* feat: give all privileges when making a moderator

* feat: remove implicit privs

* feat: give global mods default privs

* feat: more priv fixes

* feat: use lodash

* fix: remove implicit mod priv from topic delete

* fix: more privs

* fix: posts.canEdit

* fix: canDelete and canEdit

* fix: tests, remove console.log

* feat: shorter functions

* feat: add tests

* fix: uids

* fix: redis random test fail
Barış Soner Uşaklı b52dba5c92 fix:
Julian Lam 697a6597f3
fix: Re-factor handling of og:image tags ()
* fix: display proper site logo or og-image with sizes in head

* fix: refactor og:image logic, 

- Updated logic to set additional og:image tags based on more
  factors
- logo.png fallback

* feat: save image sizes on post upload, re: 

* fix: awaiting addTags in topic controller

* fix: pass strings to meta tags object

* fix: sending absolute image url to meta tag

* fix: removed unneeded async and requiring sync db

* feat: upgrade to calculate image sizes for all post uploads tracked

* fix: tests
Julian Lam 745a9589e9
Use topics:read privilege for topic filtering use cases ()
* fix: use topics:read privilege for topic filtering use cases

* fix: tests

* fix: more broken tests
renovate[bot] 84e228bbb8 fix(deps): update dependency diff to v4 ()
* fix(deps): update dependency diff to v4

* chore(deps): +diff@4.0.1

* fix: test for 
Barış Soner Uşaklı d3e4daebec posts/delete cleanup
Barış Soner Uşaklı f3a679e268 remove parseInts
Barış Soner Uşaklı ac39112271 remove more parseInts
Barış Soner Uşaklı 9c022afae1
Parse int ()
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
Barış Soner Uşaklı 805da98a36 remove unnecessary groups.resetCache calls
Julian Lam 8e832abf1e additional tests for post diffs privilege checking
Barış Soner Uşaklı 4504bbae52 2 diff test
Julian Lam 1f1e055509 updated post association code to only associate files that exist, closes
Julian Lam 0f13ae3c87 added isOrphan method,
Julian Lam 2e125293e6 save reverse association of md5 of upload to pid,
Julian Lam 850f59a1ae additional functionality, integration, and testing for
Julian Lam 5943389b7a tests for
Baris Usakli ecf6c0f3ec closes
Barış Soner Uşaklı 5b2a674a4f closes
Barış Soner Uşaklı 25cd21fba8 closes
Barış Soner Uşaklı 6b1af76f08 closes
Barış Soner Uşaklı bc6edba6df change post queue test
Barış Soner Uşaklı f161bbf956 Post queue ()
* 

* add user to post queue table

* add time of post into queue

add posting restrictions to queue

* fix shouldQueueLogic for guests

* add test for post-queue route
Barış Soner Uşaklı 3049f5cf1f test
Peter Jaszkowiak b171f3072b Fix many "duplicate key" errors
- Reset defaults after every test
- Remove individual `after(db.emptydb)` calls
- Fix async.every in groups test
- Update plugin list in socket tests
Baris Usakli 0f05ae4ac1 filterpidsbycid tests
Barış Soner Uşaklı 3a1eba2537 merge
Barış Soner Uşaklı 7a6b685aa0 if the main and last post is purged, purge the topic as well
Julian Lam 860999fa6c Merge remote-tracking branch 'origin/master' into develop
barisusakli 3d719eec99 enable sigs after test
barisusakli 8d493bf3b0 post parse test
Julian Lam af2d9fb85b Merge branch 'master' into develop
barisusakli ab9f4ad636 test bookmark tru socket.io
Julian Lam 15542f1382 removing old tests that got added back in due to git being silly
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files
barisusakli 09d0ce4778 post tests