Julian Lam
afb26bfe48
feat: show ban reason and expiry in write api responses, if user is banned
2020-11-24 10:26:14 -05:00
Barış Soner Uşaklı
5fa098326f
fix: https://github.com/NodeBB/NodeBB/pull/8685
...
fix category link redirect on cold load
fix helpers.redirect if passed in url is external
fix ajaxify so it doesn't slice first character of external url
2020-11-23 12:25:57 -05:00
Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
2020-11-20 16:32:39 -05:00
Barış Soner Uşaklı
f14e42d8bc
fix : #8883
2020-11-14 19:56:01 -05:00
Julian Lam
1446cec77f
feat: user exist route in write api
2020-11-06 11:55:04 -05:00
Julian Lam
60e1e99b4f
feat: new shorthand route /api/v3/users/bySlug/:userslug
...
closes #8844
2020-11-06 11:37:21 -05:00
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
2020-10-26 10:43:18 -04:00
Barış Soner Uşaklı
d9a16855d0
refactor: posts api
2020-10-17 22:59:12 -04:00
Barış Soner Uşaklı
bc880ee0ca
refactor: remove sockets.reqFromSocket
2020-10-16 21:05:00 -04:00
Julian Lam
40598b368e
refactor: topic creation to use api lib
2020-10-16 11:01:18 -04:00
Julian Lam
ede9435f0e
feat: send 401 for invalid-uid
2020-10-16 11:01:18 -04:00
Julian Lam
14f9d8b0e5
feat: send back 403 on no-privileges error
2020-10-15 20:23:19 -04:00
Julian Lam
4c833d0bf0
feat(writeapi): topic posting and replying
2020-10-08 15:33:10 -04:00
Julian Lam
e942ad8101
feat: added PUT /api/v1/categories/:cid route
...
Deprecated admin.categories.update socket call
Showing stack trace in console for errors, when in development mode
2020-10-08 15:33:10 -04:00
Julian Lam
a1ddc210b2
feat: added DELETE /api/v1/users/:uid and DELETE /api/v1/users
2020-10-08 15:33:10 -04:00
Julian Lam
f6433ef2c5
fix(refactor): merging write-api auth middlewares with core middlewares
2020-10-08 15:33:10 -04:00
Julian Lam
ec5c48b188
feat: migrating write-api skeleton into core
2020-10-08 15:33:10 -04:00
Barış Soner Uşaklı
fbd85680fb
fix: spec
2020-10-02 16:57:26 -04:00
Barış Soner Uşaklı
5d9a868142
feat: category filter on post queue ( #8710 )
...
* feat: category filter on post queue
category filter module
* feat: add spec
2020-10-02 16:35:20 -04:00
Barış Soner Uşaklı
de824007d9
feat: allow custom req.query.filter on /unread /recent
2020-09-13 19:41:39 -04:00
Julian Lam
9e3fd0e479
Revert "feat: #8493 , plugin helper for standardised link/button injection"
...
This reverts commit 0bbb813e4b .
2020-08-07 12:25:17 -04:00
Sam Thompson
0bbb813e4b
feat: #8493 , plugin helper for standardised link/button injection
2020-08-07 11:48:04 -04:00
Julian Lam
68f8d6e3a1
fix : #8549 send 308 Permanent Redirect on topic/category shortlinks
2020-08-06 10:49:15 -04:00
Barış Soner Uşaklı
658dd03b03
feat: add tools to recent/unread ( #8477 )
...
* feat: add tools to recent/unread
* fix: open api spec
* fix: more api spec
2020-07-08 14:09:10 -04:00
Barış Soner Uşaklı
eb9704f85e
feat: #8450 , next/prev link tags on /unread /recent
2020-06-30 11:34:32 -04:00
Barış Soner Uşaklı
842b8abb84
feat: add buildHeaderAsync ( #8367 )
...
* feat: add buildHeaderAsync
make helphers.notAllowed async
* fix: remove csrf from buildHeader
* fix: remove unused method, use middleware
* fix: /post/pid redirect doesn't need buildHeader
use buildHeaderAsync
2020-06-04 01:14:46 -04:00
Barış Soner Uşaklı
c47a1c4df4
fix: convert cids to string for comparison
2020-05-12 14:57:37 -04:00
Barış Soner Uşaklı
337be368eb
fix: category selector disabled categories
2020-05-11 09:25:28 -04:00
Barış Soner Uşaklı
23571224b5
feat: add parent cids to body class
2020-03-26 12:04:04 -04:00
Barış Soner Uşaklı
c4e58160cf
fix : #8003 , check children recursively
2019-10-30 12:47:01 -04:00
Barış Soner Uşaklı
c9bf6d0fe1
fix : #7945 , show watched categories in ignored categories
2019-10-04 22:00:37 -04:00
Barış Soner Uşaklı
310c6fd33f
properly filter /unread /recent /popular /top ( #7927 )
...
* feat: add failing test for pagination
* feat: test
* fix: redis tests
* refactor: remove logs
* fix: add new test
* feat: make sortedSetRangeByScore work with keys on redis
* fix: hardcoded set name
* feat: show topics from readable categories on recent/popular/top
* feat: rewrite unread topics
respect watched categories and followed topics
* fix: term + watched
2019-09-26 21:55:49 -04:00
Barış Soner Uşaklı
87f6ac59b1
fix: returned data
2019-09-20 19:04:47 -04:00
Barış Soner Uşaklı
955e00fd9d
fix: dont send all category data back to recent&unread etc
2019-09-20 17:21:32 -04:00
Barış Soner Uşaklı
f15c7f12b3
refactor: async/await
2019-08-19 23:17:43 -04:00
Barış Soner Uşaklı
c9250a01a2
refactor: async/await, remove dupe code for homepage routes
2019-08-14 16:27:58 -04:00
Barış Soner Uşaklı
3ecac97d7e
fix : #7826 , fix order of categories on recent dropdown
2019-08-08 12:11:13 -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
Barış Soner Uşaklı
4d9bc30d1f
feat: async3 upgrade ( #7639 )
...
* feat: async3 upgrade WIP
* fix: async.doWhilst
* fix: async early exit
* fix: psql doUntil
* fix: psql again
2019-05-30 14:36:33 -04:00
Barış Soner Uşaklı
fe6d64ccbc
fix : #7147
2019-04-26 12:59:01 -04:00
Julian Lam
949b10f132
fix: no relative path needed in req.session.returnTo
...
re: julianlam/nodebb-plugin-session-sharing#73
2019-02-15 16:42:11 -05:00
Barış Soner Uşaklı
eb7ae54f81
Category watch state ( #7109 )
...
* feat: wip, category watch change
* feat: pass data to client
* feat: allow changing state
* fix: account page categories
* fix: show in unread if topic is followed or category is watched
* feat: add default watch state to acp
* feat: save user category watch state
* feat: update unread recent pages
* fix: remove dupe code
* fix: flip conditions
* fix: handle empty arrays
* fix: ignore/watch on others profile
* feat: upgrade script for category states
if there are any users ignoring categories set their state in new zset and delete cid:<cid>:ignorers
* fix: upgrade
* fix: tests
* fix: redis count
* fix: more tests
2018-12-14 16:24:17 -05:00
Baris Usakli
b86f155690
fix : #7037
2018-11-30 14:25:54 -05:00
Barış Soner Uşaklı
1d5816b00a
add new hook filter:unread.categories
2018-11-27 13:56:09 -05:00
Barış Soner Uşaklı
53ad2bbd6e
Categories optimize ( #6999 )
...
* WIP
* fix category page
* fix counts, and copyPrivileges
* fix lint
* more fixes,
* redis fix
* fix test
* fix category test
* remove getParentsAndChildren
2018-11-25 19:08:38 -05:00
Barış Soner Uşaklı
537b7ff7e8
remove more parseInts
2018-10-23 21:36:00 -04:00
Barış Soner Uşaklı
ee2f9e9434
remove some parseInts
2018-10-20 17:55:13 -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
Barış Soner Uşaklı
a3d463916c
closes #6822
2018-10-10 11:59:40 -04:00
Barış Soner Uşaklı
ae4016d9e0
add getCateries to helpers
2018-08-17 16:39:56 -04:00