Barış Soner Uşaklı
0a6cfb37c2
feat: #7743 , posts/user.js
2019-07-09 17:30:27 -04:00
Barış Soner Uşaklı
805dcd7ca2
Async refactor in place ( #7736 )
...
* feat: allow both callback&and await
* feat: ignore async key
* feat: callbackify and promisify in same file
* Revert "feat: callbackify and promisify in same file"
This reverts commit cea206a9b8 .
* feat: no need to store .callbackify
* feat: change getTopics to async
* feat: remove .async
* fix: byScore
* feat: rewrite topics/index and social with async/await
* fix: rewrite topics/data.js
fix issue with async.waterfall, only pass result if its not undefined
* feat: add callbackify to redis/psql
* feat: psql use await
* fix: redis 🌋
* feat: less returns
* feat: more await rewrite
* fix: redis tests
* feat: convert sortedSetAdd
rewrite psql transaction to async/await
* feat: 🐶
* feat: test
* feat: log client and query
* feat: log bind
* feat: more logs
* feat: more logs
* feat: check perform
* feat: dont callbackify transaction
* feat: remove logs
* fix: main functions
* feat: more logs
* fix: increment
* fix: rename
* feat: remove cls
* fix: remove console.log
* feat: add deprecation message to .async usage
* feat: update more dbal methods
* fix: redis :voodoo:
* feat: fix redis zrem, convert setObject
* feat: upgrade getObject methods
* fix: psql getObjectField
* fix: redis tests
* feat: getObjectKeys
* feat: getObjectValues
* feat: isObjectField
* fix: add missing return
* feat: delObjectField
* feat: incrObjectField
* fix: add missing await
* feat: remove exposed helpers
* feat: list methods
* feat: flush/empty
* feat: delete
* fix: redis delete all
* feat: get/set
* feat: incr/rename
* feat: type
* feat: expire
* feat: setAdd
* feat: setRemove
* feat: isSetMember
* feat: getSetMembers
* feat: setCount, setRemoveRandom
* feat: zcard,zcount
* feat: sortedSetRank
* feat: isSortedSetMember
* feat: zincrby
* feat: sortedSetLex
* feat: processSortedSet
* fix: add mising await
* feat: debug psql
* fix: psql test
* fix: test
* fix: another test
* fix: test fix
* fix: psql tests
* feat: remove logs
* feat: user arrow func
use builtin async promises
* feat: topic bookmarks
* feat: topic.delete
* feat: topic.restore
* feat: topics.purge
* feat: merge
* feat: suggested
* feat: topics/user.js
* feat: topics modules
* feat: topics/follow
* fix: deprecation msg
* feat: fork
* feat: topics/posts
* feat: sorted/recent
* feat: topic/teaser
* feat: topics/tools
* feat: topics/unread
* feat: add back node versions
disable deprecation notice
wrap async controllers in try/catch
* feat: use db directly
* feat: promisify in place
* fix: redis/psql
* feat: deprecation message
logs for psql
* feat: more logs
* feat: more logs
* feat: logs again
* feat: more logs
* fix: call release
* feat: restore travis, remove logs
* fix: loops
* feat: remove .async. usage
2019-07-09 12:46:49 -04:00
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
2019-07-03 12:48:26 -04:00
Baris Usakli
41bc6ca2c4
feat: add status to post summaries
2019-06-27 11:17:40 -04:00
Barış Soner Uşaklı
6a7bc1c5fb
fix: on new post add it to cid::uid::pids
2019-06-24 17:26:28 -04:00
Barış Soner Uşaklı
a39f0ef592
fix : #5570 , create per category user post zsets
2019-06-24 15:21:43 -04:00
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
2019-05-30 19:30:47 -04:00
Barış Soner Uşaklı
a8409fbd49
fix : #7636 , use reputation threshold for post queue
2019-05-23 20:15:08 -04:00
Barış Soner Uşaklı
a8e6520559
fix : #7620 , allow adding new fields into user objects for posts
2019-05-22 11:52:49 -04:00
Barış Soner Uşaklı
35d10f764a
fix : #7619
2019-05-18 09:16:41 -04:00
Barış Soner Uşaklı
b52dba5c92
fix : #7508
2019-04-01 08:27:37 -04:00
Julian Lam
3ec9fc4098
fix : #7490 once again
2019-03-27 23:52:13 -04:00
Julian Lam
86e1cdd541
fix : #7490 , handling of image sizes if no size saved in db
2019-03-27 16:44:39 -04:00
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
2019-03-18 12:09:10 -04:00
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
2019-03-16 14:51:46 -04:00
Baris Usakli
7211dde7b9
feat: #7358
2019-03-09 12:35:36 -05:00
Barış Soner Uşaklı
684175f7d7
fix : #7413
2019-02-28 12:17:17 -05:00
Barış Soner Uşaklı
ac655564bb
fix: post queue notifs
...
fix moderators not showing up immediately when adding them
2019-01-14 22:38:15 -05:00
Baris Usakli
1a3838e13c
fix: missing notification
2019-01-04 13:41:19 -05:00
Baris Usakli
7809ba2800
fix : #7193 , closes #7194
2019-01-04 13:27:41 -05:00
Barış Soner Uşaklı
fef7e13c9e
feat: small fixes
2018-12-17 18:56:09 -05:00
Barış Soner Uşaklı
29b63ae7fb
fix : #6979
2018-12-14 17:31:06 -05:00
Barış Soner Uşaklı
2f57a4b9a6
fix: dont update cid:<cid>:tids:votes if topic is pinned
2018-12-12 14:35:51 -05:00
Barış Soner Uşaklı
112b5c861a
change queue logic, if user has negative rep always queue their post
2018-11-27 14:58:07 -05:00
Baris Usakli
8e5a6d9767
add banned:expire to user data
2018-11-26 13:52:45 -05:00
Barış Soner Uşaklı
e17c4b2766
uid fixes
2018-11-17 22:31:39 -05:00
Barış Soner Uşaklı
69bb3293ee
misc fixes
...
handle spider uids properly
2018-11-12 00:20:44 -05:00
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 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
4caaa046d7
dont load post data again
...
shorter async.parallel
2018-10-30 20:25:29 -04:00
Barış Soner Uşaklı
d3e4daebec
posts/delete cleanup
2018-10-30 19:41:06 -04:00
Baris Usakli
12f3f56b01
change to .exists
2018-10-26 14:31:38 -04:00
Barış Soner Uşaklı
fb6067a7ca
only parse if field is requested
2018-10-25 19:58:01 -04:00
Barış Soner Uşaklı
f3a679e268
remove parseInts
2018-10-25 17:02:59 -04:00
Baris Usakli
138154a71c
move modules
2018-10-23 15:03:32 -04:00
Barış Soner Uşaklı
ac39112271
remove more parseInts
2018-10-21 19:33:46 -04:00
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
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
c3a903142a
closes #6850
2018-10-20 16:31:16 -04:00
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Baris Usakli
9251912282
move methods from posts to posts/data
2018-10-17 15:24:17 -04:00
Barış Soner Uşaklı
6c15aee888
add cache hits/misses to posts cache
2018-10-15 15:03:06 -04:00
Barış Soner Uşaklı
5c7dd54815
fix zsets and update them on post move, closes #6823 ( #6827 )
2018-10-11 16:00:22 -04:00
Barış Soner Uşaklı
6a377568d2
closes #6764 fix typo in notif rescind
2018-09-15 17:56:03 -04:00
Julian Lam
aaa9561b7f
Revert "moved filter:post.getPostSummaryByPids to before parsePosts call"
...
This reverts commit cf82407a8f .
2018-08-26 00:08:06 -04:00
Julian Lam
cf82407a8f
moved filter:post.getPostSummaryByPids to before parsePosts call
...
/@pitaj
2018-08-24 14:54:11 -04:00
Barış Soner Uşaklı
25ebd306cc
closes #6548
2018-06-03 14:37:23 -04:00
Barış Soner Uşaklı
4504bbae52
2 diff test
2018-05-26 13:50:31 -04:00
Barış Soner Uşaklı
cba5aa975e
return early if there are no files
2018-05-19 12:58:04 -04:00
Barış Soner Uşaklı
619b74ca7b
move regex out
2018-05-18 17:28:54 -04:00
Barış Soner Uşaklı
4ee2284066
closes #6489
2018-05-07 12:23:08 -04:00
Barış Soner Uşaklı
96d2980472
fix updrade error if file is not found closes #6485
2018-05-03 16:06:56 -04:00