Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
4 years ago
Barış Soner Uşaklı
ef3df47a6d
refactor: remove breaking change in pin expiry
4 years ago
Julian Lam
046d0b1637
feat: allow pins to expire (if set) ( #8908 )
...
* fix: add back topic assert middleware for pin route
* feat: server-side handling of pin expiries
* refactor: togglePin to not require uid parameter [breaking]
* feat: automatic unpinning if pin has expiration set
* feat: client-side modal for setting pin expiration
* refactor: categories.getPinnedTids to accept multiple cids
... in preparation for pin expiry logic, direct access to *:pinned zsets is discouraged
* fix: remove references to since-removed jobs file for topics
* feat: expire pins when getPinnedTids is called
* refactor: make the togglePin change non-breaking
The 'action:topic.pin' hook now sends uid again, as before. However, if it is a system action (that is, a pin that expired), 'system' will be sent in instead of a valid uid
4 years ago
Barış Soner Uşaklı
a05905f196
performance improvements ( #8795 )
...
* perf: nconf/winston/render
cache nconf.get calls
modify middleware.pageView to call next earlier
don't call winston.verbose on every hook see https://github.com/winstonjs/winston/issues/1669
translate header/footer separately and cache results for guests
* fix: copy paste fail
* refactor: style and fire hook only log in dev mode
* fix: cache key, header changes based on template
* perf: change replace
* fix: add missing await
* perf: category
* perf: lodash clone
* perf: remove escapeRegexChars
4 years ago
Barış Soner Uşaklı
bbf6889ecc
fix: topic count on category page if filter is author
5 years ago
Barış Soner Uşaklı
69333f59af
refactor: remove vars
6 years ago
Barış Soner Uşaklı
f2912e9fe0
fix: pinned tids showing on page > 1
6 years ago
Baris Usakli
8bf40d04c9
fix : #7788 , fix on topic move and new post
6 years ago
Barış Soner Uşaklı
fcf3e0770b
feat: #7743 categories
6 years ago
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
Barış Soner Uşaklı
cb51c239f2
feat: remove duped zadds, these are already in topics.onNewPostMade
6 years ago
Barış Soner Uşaklı
198d05875f
feat: cleanup, use bulk
6 years ago
Barış Soner Uşaklı
c27be9db5a
Recent refactor ( #6879 )
...
* wip
* fix inf scroll
* remove duplicated code
* remove dupe code in /unread
* use topicList
* update tag page to use topicList
* fix tests
* combine ifs
* remove more dupe code
* disable timeout
6 years ago
Barış Soner Uşaklı
c738dc7d3e
remove some more parseInts
6 years ago
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
6 years ago
Barış Soner Uşaklı
e8d7a23e2e
remove deprecated methods
7 years ago
Barış Soner Uşaklı
2fd2accf8c
add tests for top topics
...
fix popular page displaying 18 topics per page
7 years ago
Julian Lam
bfee23adee
basic methods and initial integration for #6463
7 years ago
Barış Soner Uşaklı
2bf275fe29
#6158
7 years ago
Baris Usakli
5604c62776
use the first set for sorting
7 years ago
Baris Usakli
6778cce265
add new zset
7 years ago
Baris Usakli
72cafd55cf
2 new hooks for changing direction and set name
8 years ago
Barış Soner Uşaklı
e0dc47f883
closes #5779
8 years ago
Baris Usakli
037a0e5239
closes #5742
...
also fix reverse infinite scroll when sorting is changed
8 years ago
Baris Usakli
1d26fc0d89
closes #5741
8 years ago
Barış Soner Uşaklı
f1b8492164
remove unnecessary checks
8 years ago
Peter Jaszkowiak
c18808fdeb
ESlint no-useless-concat, no-mixed-spaces-and-tabs
8 years ago
Peter Jaszkowiak
896c8c7343
ESlint object-curly-spacing
8 years ago
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
8 years ago
Peter Jaszkowiak
3361a72725
ESlint no-plusplus
...
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
8 years ago
Julian Lam
c99321a518
always setting app.previousUrl now, and passing cid into filter:category.topics.get hook
8 years ago
barisusakli
c0a8fd7395
allow multiple tags
8 years ago
Barış Soner Uşaklı
805cacb2af
dont add tid to :tids:posts if its pinned
8 years ago
barisusakli
c33d3e874a
store pinned topics in new zset
...
keep pinned topics on top on different sort types
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
9 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
9 years ago
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
9 years ago
barisusakli
a6c3be0bb1
store category recent tids for faster retrieval
9 years ago
barisusakli
958fe3e72f
closes #3762
9 years ago
barisusakli
018f7ba65a
closes #4307
...
ability to send an array of keys to getSortedSetRange
use getSortedSetRevRange instead of getSortedSetRevUnion
9 years ago
barisusakli
878b7b21ee
closes #4170
9 years ago
barisusakli
1a87767c2c
removed extra isAdminOrMod check
9 years ago
barisusakli
4440865ec4
support for array in getTopicIds
9 years ago
barisusakli
c0c38437a0
isAdminOrMod
10 years ago
Julian Lam
4acb31839e
nodebb/nodebb#3615
10 years ago
barisusakli
b292aeea72
closes #3120
...
also dont allow loading posts of a topic if its deleted via
topics.loadMore
10 years ago
barisusakli
78c65aee05
even more search changes
10 years ago
barisusakli
a77a761433
closes #1917
10 years ago
barisusakli
b7f55e8453
fix tests
10 years ago