Commit Graph

12835 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
7665adf7d1 fix: missing awaits, possible test fix 2021-02-13 01:43:52 -05:00
Barış Soner Uşaklı
9a6cf3d967 fix: #9301, dont call sitemapstream if there are no entries in categories/pages/topics.xml 2021-02-12 23:18:16 -05:00
Julian Lam
50664487b9 test: additional tests for topic thumbs 2021-02-12 20:43:38 -05:00
Barış Soner Uşaklı
807b0d4348 fix: properly incase its the same path 2021-02-12 20:18:47 -05:00
Barış Soner Uşaklı
76bcc0c99c fix: numThumbs count on associate 2021-02-12 20:17:43 -05:00
Julian Lam
1490b32d1b fix: missing cache deletion calls for post-queue cache
/cc @barisusakli
2021-02-12 19:57:26 -05:00
Julian Lam
3e6640efb2 refactor: thumbs.associate accepts both relative path and url in path arg 2021-02-12 17:11:32 -05:00
Julian Lam
a4b4a5566d feat: link to post-queue from topic event 2021-02-12 15:15:20 -05:00
Julian Lam
8fd78ce512 feat: post-queue topic event 2021-02-12 15:10:47 -05:00
Julian Lam
3f35fd335d feat: add post-queue cache 2021-02-12 15:10:30 -05:00
Julian Lam
36f2021186 refactor: move post queue retrival code to posts.getQueuedPosts 2021-02-12 12:25:27 -05:00
Julian Lam
b81508c4e2 fix: init topic events from webserver.js 2021-02-12 11:50:43 -05:00
Julian Lam
6074a0fbbf refactor: call topic events init from within file itself 2021-02-12 10:26:50 -05:00
Julian Lam
cc275e1016 Revert "feat: newsletter opt-in/out in UCP, closes #21"
This reverts commit 3c7cd9a6c4.
2021-02-12 10:12:38 -05:00
Julian Lam
3c7cd9a6c4 feat: newsletter opt-in/out in UCP, closes #21 2021-02-12 10:11:08 -05:00
Barış Soner Uşaklı
3595473485 feat: load user posts/topics via xhr on infinitescroll 2021-02-11 16:47:51 -05:00
Barış Soner Uşaklı
b753c69cfe fix: check null topics 2021-02-11 14:51:17 -05:00
Barış Soner Uşaklı
58cd797e4c fix: guard against null topics 2021-02-11 14:48:29 -05:00
Barış Soner Uşaklı
c953b1b3d1 fix: #9292, messageobj.content already parsed 2021-02-11 12:55:00 -05:00
Barış Soner Uşaklı
4b2bf12fd1 feat: #9294, put new categories at top 2021-02-11 12:35:10 -05:00
Julian Lam
9d17f397c0 fix(remountable-routes): more fixes to remountable routes
fix: ensure proper admin privilege checking on remounted `/admin` mount

fix: guard against plugins sending back missing mounts

fix: no need to make addRemountableRoutes awaitable
2021-02-11 11:45:24 -05:00
Julian Lam
16c1d6e937 style(remountable-routes): abstract removable routes code to a separate local fn 2021-02-11 11:45:24 -05:00
Julian Lam
1f28713f1a refactor(remountable-routes): rename src/routes/accounts.js to src/routes/user.js to better match the route prefix 2021-02-11 11:45:24 -05:00
Julian Lam
bc68e990af fix(remountable-routes): bug with user routes remounting to itself 2021-02-11 11:45:24 -05:00
Julian Lam
9021f071d4 feat(remountable-routes): allow category and account routes to be remounted 2021-02-11 11:45:24 -05:00
Julian Lam
f01af62b53 feat(remountable-routes): allow /admin and /post to be remountable 2021-02-11 11:45:24 -05:00
Julian Lam
92758ec50d refactor(remountable-routes): allow certain route prefixes to be mounted elsewhere 2021-02-11 11:45:24 -05:00
Barış Soner Uşaklı
765db86d4e fix: clear category cache on copy parent 2021-02-10 22:13:35 -05:00
Barış Soner Uşaklı
ed3e9ce2e2 fix: delete category cache key on category create 2021-02-10 22:10:54 -05:00
Barış Soner Uşaklı
c61cc37bba fix: typo 2021-02-10 17:56:46 -05:00
Barış Soner Uşaklı
cf4002bcc9 perf: cache base_url 2021-02-10 17:41:39 -05:00
Barış Soner Uşaklı
5ce2820799 perf: single call to get digest topics, dont send duplicate topics 2021-02-10 17:37:22 -05:00
Barış Soner Uşaklı
90d5c9da44 perf: single db call to add all uids 2021-02-10 00:58:07 -05:00
Barış Soner Uşaklı
a5fa212fc7 fix: wait for event.log to finish before killing process 2021-02-09 23:03:02 -05:00
Barış Soner Uşaklı
0185ea1b4f perf: make digests a little bit faster
and use batch.processArray
dont load data for users who have no email or have not confirmed their emails
2021-02-09 15:27:08 -05:00
Barış Soner Uşaklı
b6493f896f fix: tests, only generate csrf_token on 404 gets 2021-02-09 12:40:29 -05:00
Barış Soner Uşaklı
94f72d6093 fix: #9287, generate csrf_token on 404 2021-02-09 12:23:55 -05:00
Julian Lam
783786cf8c fix: do not blindly escape a notification's bodyLong
For 7+ years we were escaping this value, but it is in many cases already sanitized (as it may be a post content). For those cases when it is not, I now run it through parse.raw.

Instead of escaping, it now strips p, img, and a tags.
2021-02-09 11:16:40 -05:00
Barış Soner Uşaklı
670cde78da feat: add invalid event name to error message 2021-02-08 18:36:41 -05:00
Peter Jaszkowiak
cc9d6fd08b chore: eslint max-len 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
5c2f0f0557 chore: eslint no-restricted-syntax 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
115d19e289 chore: eslint prefer-rest-params, prefer-spread 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
23f212a4c0 chore: eslint prefer-destructuring 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
8d1462ffd8 chore: eslint object-curly-newline 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
62869bae3d chore: eslint function-paren-newline 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
dab3b23575 chore: eslint no-var, vars-on-top 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
b56d9e12b5 chore: eslint prefer-arrow-callback 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5 chore: eslint prefer-template 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
4ee0f1459d chore: eslint import/newline-after-import 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
dad01e3051 chore: eslint no-bitwise 2021-02-08 18:06:44 -05:00