Peter Jaszkowiak
b9fd2c87f3
chore: bump deps ( #9335 )
...
* chore: bump deps
* fix: husky git hooks
2021-02-28 17:54:56 -05:00
Barış Soner Uşaklı
2737f6531b
fix: notif pruning
2021-02-28 12:54:06 -05:00
Barış Soner Uşaklı
02f08111cf
feat: keep notifs for one month, load 50 notifications instead of 30
2021-02-26 22:22:12 -05:00
Julian Lam
9bf94ad50f
fix: allow interstitial callbacks to be functional (no cb required)
2021-02-26 09:58:54 -05:00
Barış Soner Uşaklı
cdf5d18f54
fix: don't publish before pubClient is connected
2021-02-26 08:17:45 -05:00
Julian Lam
86b0c57d7a
feat: also pass in uid to filter:email.prepare
2021-02-25 17:11:57 -05:00
Julian Lam
27ea3dcb2f
feat: new hook filter:email.prepare
2021-02-25 17:10:56 -05:00
Julian Lam
bf90d15881
feat: new hook static:email.send
...
deprecates filter:email.send
2021-02-25 15:05:58 -05:00
Barış Soner Uşaklı
0dad568cbe
perf: faster category tags upgrade script
2021-02-25 11:31:09 -05:00
Barış Soner Uşaklı
95033ef756
perf: use setObjectBulk
2021-02-24 21:38:00 -05:00
Barış Soner Uşaklı
a07509f770
perf: make upgrade script faster
2021-02-24 21:16:43 -05:00
Barış Soner Uşaklı
48f1e265f4
fix: remove unused async
2021-02-24 20:54:03 -05:00
Barış Soner Uşaklı
0959b1248b
perf: make upgrade script faster
...
use bulkAdd/remove
2021-02-24 20:38:57 -05:00
Barış Soner Uşaklı
14a6c349c2
feat: show time info for upgrade scripts
2021-02-24 20:10:18 -05:00
Barış Soner Uşaklı
293b7c2650
refactor: privileges, export modules directly ( #9325 )
...
fix unused/commented out methods in admin privileges
2021-02-24 18:10:34 -05:00
Julian Lam
984c9dd915
fix: in setupPageRoute helper, buildHeader after plugin hooks have fired
...
To allow for a plugin to call doLogin and have it properly reflect in the header
2021-02-24 17:23:32 -05:00
Julian Lam
73dc64d9ff
feat: add dashboard sub-pages to ACP menu
2021-02-24 15:28:19 -05:00
Julian Lam
0804d54759
spec: schema docs for new ACP dashboard subpage routes
2021-02-24 12:51:20 -05:00
Julian Lam
2f89b0d791
feat: recent logins sessions table in dashbaord subpage
2021-02-24 12:51:20 -05:00
Julian Lam
e1ed514b10
feat: topics dashboard details subpage
2021-02-24 12:51:20 -05:00
Julian Lam
c57c77030e
feat: update user list in dashboard/users on graph update
2021-02-24 12:51:20 -05:00
Julian Lam
f8e1a74c26
fix: wrong qs param, allow string to be passed to util.getDaysArray
2021-02-24 12:51:20 -05:00
Julian Lam
cc93822436
feat: show list of recent users in dashboard/users
2021-02-24 12:51:20 -05:00
Julian Lam
6fdcae7320
feat: req.query parsing and dynamically loading data instead
2021-02-24 12:51:20 -05:00
Julian Lam
f561799f74
refactor: abstract out some client side dashboard code into modules, analytics subpages for users, topics, and logins
2021-02-24 12:51:20 -05:00
Julian Lam
079a13d41a
feat: new hooks for notifications get/getCount
2021-02-24 12:45:49 -05:00
Peter Jaszkowiak
0d59fe3d2b
fix( #9315 ): api v3 post, put, del JSON
...
also allow `app.alertError` to be called without an argument
also fix `./nodebb build --dev` to actually build in dev mode
2021-02-22 21:19:46 -05:00
Julian Lam
dbe5f7027b
fix: wrong call to sortedSetAdd
2021-02-22 13:31:54 -05:00
Julian Lam
16d3c45782
feat: report login statistics from analytics data, instead of its own zset
2021-02-22 13:23:25 -05:00
Julian Lam
9a9f366d3b
feat: track login sessions for admin dashboard reporting
2021-02-22 11:38:26 -05:00
Julian Lam
020f0b8322
fix: session not persisting to database in some scenarios
...
In some edge cases (e.g. SSO plugin redirecting the user immediately), with modern browsers, the request is never "completed" for speed. This causes a condition where the session object never persists to the database, even though it has changed. This added line forces a db persist on a successful login.
Context: https://github.com/expressjs/session/pull/484
2021-02-22 11:18:30 -05:00
Julian Lam
504fd107c7
feat: track successful logins in analytics
2021-02-22 11:16:43 -05:00
Julian Lam
d3a9e76ae2
test(user): added additional tests for icon background colour
2021-02-19 11:38:48 -05:00
Julian Lam
955021247e
feat(user): icon background selector in change picture modal
2021-02-19 11:38:48 -05:00
Julian Lam
fbccf6e22f
refactor(user): all plugins to change list of icon background colours
...
One notable change is line 200, where a conditional was changed. The conditional used to check for `user.hasOwnProperty('picture')` and was added so that icons would only be included in the response if the picture was requested. This doesn't seem to apply as picture could be set regardless (see default avatar logic above), so I explicitly check `requestedFields` now.
2021-02-19 11:38:48 -05:00
Barış Soner Uşaklı
ed3d9dcbbf
feat: pass post object to filter:post.tools
2021-02-19 11:32:17 -05:00
Barış Soner Uşaklı
0e07f3c9ba
feat: allow defining a list of system tags
2021-02-17 14:44:04 -05:00
Barış Soner Uşaklı
25c8f02634
fix : #9307 , use _.flatten
2021-02-17 12:48:11 -05:00
Julian Lam
2fef462782
fix: awaiting res.render in send404 controller
...
>
> A plugin wanted to use `response:rotuer.page` to 404 a specific page on some condition. res.render returns early in send404 and so must be awaited otherwise multiple responses will be sent
2021-02-17 11:57:12 -05:00
Julian Lam
65c57c730c
docs: added comment re: #9305
2021-02-17 10:52:04 -05:00
ahwayakchih
34096b73ef
fix: do not overwrite config.port from URL, if it's already set
...
If URL was set to something like `http://example.com:8080 `, and port
was set to 4567, keep listening on port 4567 and keep linking through
URL that was specified.
This allows to listen on port 4567, while having NGINX (or any proxy)
set to listen on port 8080 and route traffic to port 4567.
So NodeBB can be "hidden" behind proxy while URL can still contain
non-standard port, i.e., port different than 80 and 443.
2021-02-17 10:51:08 -05:00
Julian Lam
8686fbfa3f
fix: switch back to getSortedSetRange
...
/cc @barisusakli
2021-02-17 10:41:57 -05:00
Barış Soner Uşaklı
9ce6f8ad93
feat: add tag filter to getSortedTopics
2021-02-16 23:12:10 -05:00
Barış Soner Uşaklı
5286f20862
refactor: remove dupe code
2021-02-16 22:10:26 -05:00
Julian Lam
7223074f1d
feat: ability to re-order topic thumbnails
2021-02-16 11:54:09 -05:00
Barış Soner Uşaklı
91734a6484
fix: settings v3
2021-02-15 20:52:01 -05:00
Barış Soner Uşaklı
0738dae895
feat: #9304 , add category/topic/username to post queue notification emails
2021-02-15 16:15:04 -05:00
Barış Soner Uşaklı
8f0386d9ac
feat: add failing test for list append/prepend with list ( #9303 )
...
* feat: add failing test for list append/prepend with list
* feat: mongo/psql
* feat: improve test
2021-02-14 11:12:56 -05:00
Julian Lam
1ae8dda8a8
chore: extra console.log
2021-02-13 11:57:10 -05:00
Julian Lam
7ebb6d3056
fix: thumbs.associate logic fix + tests
2021-02-13 11:52:12 -05:00