Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
4 years ago
Barış Soner Uşaklı
81e33b9391
fix : #8317
5 years ago
Barış Soner Uşaklı
e74954407f
fix : #8157 , update recent tid when post is moved
5 years ago
Barış Soner Uşaklı
05e753c73b
refactor: remove var
5 years ago
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 cea206a9b8e6d8295310074b18cc82a504487862.
* 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
6 years ago
Barış Soner Uşaklı
a39f0ef592
fix : #5570 , create per category user post zsets
6 years ago
Barış Soner Uşaklı
aca50f1fe1
dont crash if topic is moved to pinned topic
6 years ago
Barış Soner Uşaklı
537b7ff7e8
remove more parseInts
6 years ago
Baris Usakli
a228dc2de9
closes #6797
6 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
6 years ago
Barış Soner Uşaklı
ba21c5170a
moved increase/decrease
...
moved these two methods into addPostToTopic&removePostFromTopic
6 years ago
Barış Soner Uşaklı
5c7dd54815
fix zsets and update them on post move, closes #6823 ( #6827 )
6 years ago
Barış Soner Uşaklı
f6ac92111b
style changes
8 years ago
Julian Lam
72e77772db
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
4bb49a7171
ESlint no-unused-vars
8 years ago
Peter Jaszkowiak
896c8c7343
ESlint object-curly-spacing
8 years ago
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
8 years ago
Peter Jaszkowiak
532951c24f
ESlint space-in-parens, block-spacing
8 years ago
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
8 years ago
barisusakli
1e9fabc5db
closes #5354
8 years ago
Sergii Paryzhskyi
e515b791da
Fix eslint rules ( #5117 )
...
* Fix semi linter rule
* Fix semi-spacing linter rule
* Fix no-undef-init linter rule
* Fix space-before-blocks linter rule
8 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
8 years ago
barisusakli
56d325bd86
privilege fixes
9 years ago
barisusakli
596af5d82b
closes #4754
9 years ago
barisusakli
3f0ca31393
style changes
9 years ago
boomzilla
52e4a37df8
When forking a topic, updates user bookmarks in the topic to keep the last read position ( #4554 )
...
from inadvertently being too far down the topic due to post indices decreasing because
some posts were moved to a new topic.
9 years ago
barisusakli
ff88186d41
closes #4537
9 years ago
pichalite
be4aa5ac94
add title length check to topic fork process
9 years ago
barisusakli
fb7f10d63d
closes #3821
9 years ago
barisusakli
c0c38437a0
isAdminOrMod
10 years ago
barisusakli
d7f82f96b1
remove threadTools require
10 years ago
barisusakli
777157c0d6
remove old postTools requires
10 years ago
barisusakli
ffff8093ba
make sure user is admin/mod before forking
10 years ago
barisusakli
f6be4efe8b
when a post is moved update recent topics order
10 years ago
Barış Soner Uşaklı
c94c1430b7
api/post/pid route
10 years ago
barisusakli
6ccdf187ea
closes #2595
10 years ago
barisusakli
5414c268a0
sort numerically
10 years ago
barisusakli
3d9e86d9b2
removed null
10 years ago
barisusakli
da4014eb71
dont allow move to same topic
10 years ago
barisusakli
8bba811aaf
closes #2522
10 years ago
barisusakli
782896997d
post count fix for post move
10 years ago
barisusakli
f3f4711a60
wait for callback
11 years ago
barisusakli
b7f71ca0b4
fixes removePostFromTopic
...
remove the pid from the votes set too
11 years ago
barisusakli
7610c11cd1
closes #450
...
backup database before upgrade!
upgrade script will take the first post of each topic and set the
`mainPid` property on the topic. then it will remove that pid from the
sorted sets for that topic, this was done to make alternative sorting
work.
added a new sorted set called `tid:<id>:posts:votes` that is used to
sort topic posts by vote count, the original sorted set `tid:<id>:posts`
is used to sort by oldest first or newest first.
the main post is added to the returned posts array on topic load and is
always at the top.
theme changes are minimal just a few new data properties on the posts
and the sorting dropdown.
hopefully didn't miss anything too critical.
11 years ago
barisusakli
4234057821
first pass for #1518
...
this only handles postTools privileges, topic and category will follow
11 years ago
Julian Lam
34b522f36d
missed a bunch of "editable" checks
11 years ago
Micheil Smith
3e82cab398
Add missing new lines at end of files.
11 years ago
barisusakli
1f77df794a
added lots of error keys
11 years ago
barisusakli
db3632557e
moved notification push out of markAsRead
11 years ago
barisusakli
478429af3a
moved fork to new file
11 years ago