322 Commits (8b1dadb7f85075e89f0139cd605e5a9e5cec5381)

Author SHA1 Message Date
Barış Soner Uşaklı bd640a1107
Topic await errors (#7727)
* 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
6 years ago
Baris Usakli 41bc6ca2c4 feat: add status to post summaries 6 years ago
Barış Soner Uşaklı 6a7bc1c5fb fix: on new post add it to cid::uid::pids 6 years ago
Barış Soner Uşaklı a39f0ef592 fix: #5570, create per category user post zsets 6 years ago
Barış Soner Uşaklı 035f624758
Remove implicit mod privs. closes #6345 (#7648)
* 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
6 years ago
Barış Soner Uşaklı a8409fbd49 fix: #7636, use reputation threshold for post queue 6 years ago
Barış Soner Uşaklı a8e6520559 fix: #7620, allow adding new fields into user objects for posts 6 years ago
Barış Soner Uşaklı 35d10f764a fix: #7619 6 years ago
Barış Soner Uşaklı b52dba5c92 fix: #7508 6 years ago
Julian Lam 3ec9fc4098 fix: #7490 once again 6 years ago
Julian Lam 86e1cdd541 fix: #7490, handling of image sizes if no size saved in db 6 years ago
Julian Lam 697a6597f3
fix: #7444 Re-factor handling of og:image tags (#7463)
* fix: display proper site logo or og-image with sizes in head

* fix: refactor og:image logic, #7444

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

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

* 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
6 years ago
Julian Lam 745a9589e9
Use topics:read privilege for topic filtering use cases (#7462)
* fix: use topics:read privilege for topic filtering use cases

* fix: tests

* fix: more broken tests
6 years ago
Baris Usakli 7211dde7b9 feat: #7358 6 years ago
Barış Soner Uşaklı 684175f7d7 fix: #7413 6 years ago
Barış Soner Uşaklı ac655564bb fix: post queue notifs
fix moderators not showing up immediately when adding them
6 years ago
Baris Usakli 1a3838e13c fix: missing notification 6 years ago
Baris Usakli 7809ba2800 fix: #7193, closes #7194 6 years ago
Barış Soner Uşaklı fef7e13c9e feat: small fixes 6 years ago
Barış Soner Uşaklı 29b63ae7fb fix: #6979 6 years ago
Barış Soner Uşaklı 2f57a4b9a6 fix: dont update cid:<cid>:tids:votes if topic is pinned 6 years ago
Barış Soner Uşaklı 112b5c861a change queue logic, if user has negative rep always queue their post 7 years ago
Baris Usakli 8e5a6d9767 add banned:expire to user data 7 years ago
Barış Soner Uşaklı e17c4b2766 uid fixes 7 years ago
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
7 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
7 years ago
Barış Soner Uşaklı 4caaa046d7 dont load post data again
shorter async.parallel
7 years ago
Barış Soner Uşaklı d3e4daebec posts/delete cleanup 7 years ago
Baris Usakli 12f3f56b01 change to .exists 7 years ago
Barış Soner Uşaklı fb6067a7ca only parse if field is requested 7 years ago
Barış Soner Uşaklı f3a679e268 remove parseInts 7 years ago
Baris Usakli 138154a71c move modules 7 years ago
Barış Soner Uşaklı ac39112271 remove more parseInts 7 years ago
Barış Soner Uşaklı 9c022afae1
Parse int (#6853)
* 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
7 years ago
Barış Soner Uşaklı c3a903142a closes #6850 7 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
7 years ago
Baris Usakli 9251912282 move methods from posts to posts/data 7 years ago
Barış Soner Uşaklı 6c15aee888 add cache hits/misses to posts cache 7 years ago
Barış Soner Uşaklı 5c7dd54815
fix zsets and update them on post move, closes #6823 (#6827) 7 years ago
Barış Soner Uşaklı 6a377568d2 closes #6764 fix typo in notif rescind 7 years ago
Julian Lam aaa9561b7f Revert "moved filter:post.getPostSummaryByPids to before parsePosts call"
This reverts commit cf82407a8f.
7 years ago
Julian Lam cf82407a8f moved filter:post.getPostSummaryByPids to before parsePosts call
/@pitaj
7 years ago
Barış Soner Uşaklı 25ebd306cc closes #6548 7 years ago
Barış Soner Uşaklı 4504bbae52 2 diff test 7 years ago
Barış Soner Uşaklı cba5aa975e return early if there are no files 7 years ago
Barış Soner Uşaklı 619b74ca7b move regex out 7 years ago
Barış Soner Uşaklı 4ee2284066 closes #6489 7 years ago
Barış Soner Uşaklı 96d2980472 fix updrade error if file is not found closes #6485 7 years ago
Julian Lam dc386b5b23 Merge branch 'master' into user-blocking 7 years ago
Julian Lam 3951bb9532 Merge remote-tracking branch 'origin/master' into user-blocking 7 years ago