Barış Soner Uşaklı
5607e5bccb
fix : #10594 , move counter code ( #11529 )
...
instead of updating counters one by one on each topic move, update them once after all topics are moved, use zcard instead of incr/decr
2 years ago
Barış Soner Uşaklı
7ee4e4e004
fix : #10357
3 years ago
Barış Soner Uşaklı
6399b42826
feat: closes #9845 , sort by views
4 years ago
Barış Soner Uşaklı
edf80cfb3b
fix: hide titleRaw for deleted topics as well
4 years ago
gasoved
077330b764
feat: scheduled topics ( #9399 )
...
* feat: scheduled topics
* refactor: linting fixes
* fix: tests
* fix(test): race condition
* fix: make a single request
4 years ago
Barış Soner Uşaklı
e42b152f16
fix : #9414 , use posts:view_deleted
4 years ago
Barış Soner Uşaklı
75553b246c
fix: sorting when filtering by uid
4 years ago
Peter Jaszkowiak
23f212a4c0
chore: eslint prefer-destructuring
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
5 years ago
Barış Soner Uşaklı
ef3df47a6d
refactor: remove breaking change in pin expiry
5 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
5 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
5 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
7 years ago
Barış Soner Uşaklı
c738dc7d3e
remove some more parseInts
7 years ago
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
7 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
8 years ago
Baris Usakli
5604c62776
use the first set for sorting
8 years ago
Baris Usakli
6778cce265
add new zset
8 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
9 years ago
barisusakli
c0a8fd7395
allow multiple tags
9 years ago
Barış Soner Uşaklı
805cacb2af
dont add tid to :tids:posts if its pinned
9 years ago
barisusakli
c33d3e874a
store pinned topics in new zset
...
keep pinned topics on top on different sort types
9 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