Commit Graph

10658 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
0431d75f0d fix: #8297, uids.length is different than topics.length 2020-05-05 21:32:07 -04:00
Julian Lam
fcb81cb8ca fix: #8297 guest handles shown in category.tpl 2020-05-05 20:42:02 -04:00
Barış Soner Uşaklı
16a98eaf50 fix: only add to set if numRecentReplies>0 2020-05-05 14:12:46 -04:00
Barış Soner Uşaklı
b25b51bd97 feat: add action:post.updatePostVoteCount 2020-05-05 13:09:17 -04:00
Barış Soner Uşaklı
6c59683b16 refactor: change to action:categories.updateRecentTid 2020-05-04 21:17:05 -04:00
Barış Soner Uşaklı
ecd622fdf5 fix: failing tests @julianlam 2020-05-04 15:02:04 -04:00
Barış Soner Uşaklı
51933c1fcb feat: add filter:categories.updateRecentTid 2020-05-04 13:09:34 -04:00
Barış Soner Uşaklı
478ed6c16f refactor: match core field name pinned 2020-05-04 12:37:42 -04:00
Julian Lam
0053e779e8 feat: response:router.page, dep. filter variant 2020-05-04 09:52:36 -04:00
Barış Soner Uşaklı
9839346ec3 fix: #8290, if there are no filters go to ?reset=1
dont count ?page=1 as a filter
2020-05-03 14:48:15 -04:00
Barış Soner Uşaklı
5ebcdb1806 fix: #8287, fix users:flags as well 2020-05-02 15:34:58 -04:00
Barış Soner Uşaklı
4f1128fd2b fix: add missing await 2020-05-02 13:34:19 -04:00
Barış Soner Uşaklı
9d153fd388 fix: #8287, dont readd user after deletion
don't add user uid back to users:* sorted sets if they are deleted
upgrade script to fix users:* sorted sets
2020-05-02 13:27:16 -04:00
Barış Soner Uşaklı
4d6b2ec3ce fix: missing await 2020-05-01 23:54:17 -04:00
Barış Soner Uşaklı
0391856d7d fix: #8286, rescind notif when its resolved/rejected 2020-05-01 13:32:20 -04:00
Barış Soner Uşaklı
0ca84bd9f4 fix: #8284, parse ToS on register
rewrite intersitials to async/await
2020-04-30 15:13:14 -04:00
Barış Soner Uşaklı
0c7c70edaf fix: crash in topic controller 2020-04-28 17:27:31 -04:00
psychobunny
fe03effe7d Revert "fix: crash when res.locals.linkTags is undefined"
This reverts commit 7cab2b0fea.
2020-04-28 17:27:06 -04:00
Andrew Rodrigues
7cab2b0fea fix: crash when res.locals.linkTags is undefined 2020-04-28 15:49:06 -04:00
Barış Soner Uşaklı
e80b81010c fix: #8272 user link in digest email 2020-04-24 22:02:10 -04:00
Julian Lam
5a1c6ee7ed fix: response hook logic
After some more thought, a response hook should be checking for
whether headers are sent, and executing (or not executing) the
default logic in that case.

Before, we were relying on hooks to call data.next() to continue
execution, but it makes more sense to have the listener either
send a response or not, and handle the behaviour afterwards.
2020-04-24 11:51:33 -04:00
Julian Lam
ccc6118d30 Testing suite integration for openapi spec (#8263)
* feat: testing suite integration for openapi spec

The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.

* fix(openapi): removed debug stuff from tests

* fix(openapi): fixed some tests

* fix(openapi): added additional check to tests, test fixes

* fix(openapi): better tests, fixed spec errors

* fix(openapi): bad conditional in test

* fix: oops

* fix(openapi): more tests fixing

* fix(openapi): more tests

* fix(openapi): fix some more tests

* fix: verbose'd an info log

* fix: topic pagination route returns schema-optimized pagination block

* fix(openapi): more test/spec fixes

* fix(openapi): accidentally sending in authenticated jar for anon routes

* fix(openapi): more test/spec fixes

* fix(openapi): more spec fixes

* fix: timestampReadable Invalid Date

* fix(openapi): more tests... almost there

* fix(openapi): more tests fixing

* fix(openapi): finally all tests passing

* fix(openapi): added reverse test to compare response to spec

... and fixed all the tests that broke

* fix: remove tests related to group covers, as route is gone

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): object cache is not present for psql

* fix: tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
2020-04-23 21:50:08 -04:00
Barış Soner Uşaklı
4eafe0f057 fix: #8269, return array of topics from hook 2020-04-23 11:32:24 -04:00
Opliko
6e5ebb6184 feat: manifest.json improvements from #8126 (#8264)
* feat: manifest.json improvements from #8126

* Fix short title placeholder

* use lowercase letters for hex colors
2020-04-19 13:32:49 -04:00
Barış Soner Uşaklı
153456278b feat: show error if json is invalid 2020-04-17 13:24:52 -04:00
Julian Lam
ef52461fb6 fix: remove dead picture upload code #8260 2020-04-17 10:08:18 -04:00
Julian Lam
5bcaf71501 fix: path.resolve to logs file 2020-04-16 20:46:03 -04:00
Barış Soner Uşaklı
c7ea84a2ae fix: wrong data returned in available.groups 2020-04-15 22:40:32 -04:00
Peter Jaszkowiak
e68156e1f2 fix(deps): bump dependencies (#8239)
* fix(deps): bump dependencies

* fix(deps): commander@5

* fix(deps): use @nodebb/mubsub
2020-04-13 15:50:20 -04:00
Julian Lam
f2f6fbf15a fix: #8232, unresolvable session mismatch on register cancel 2020-04-13 13:26:27 -04:00
Jonson Petard
e6a1741c2e Support package manager: cnpm and pnpm (#8222)
* feat: support pnpm, cnpm

* feat: store supportedPackageManager in default package.json

* feat: store supportedPackageManager in src/cli/package-install.js

Co-authored-by: a632079 <a632079@qq.com>
2020-04-13 09:59:52 -04:00
hb90dev
3ce885fff2 fixes sitemap base url issue when using with subfolder (#8247)
* fixes sitemap base url issue when using with subfolder

* fixes sitemap base url issue when using with subfolder

* uses directly relative path

* removes prefix variable
2020-04-13 09:57:24 -04:00
Barış Soner Uşaklı
d77036dbd1 fix: #8249, don't send move notifications for deleted posts/topics 2020-04-13 09:52:18 -04:00
Julian Lam
1136a369f3 feat: local redoc view on development mode only 2020-04-03 14:10:13 -04:00
Julian Lam
c82a263788 Revert "fix: override ACAO header for read API spec file"
This reverts commit 240d90919b.
2020-04-03 12:41:52 -04:00
Julian Lam
240d90919b fix: override ACAO header for read API spec file 2020-04-03 12:31:19 -04:00
Barış Soner Uşaklı
59cf0e80d2 fix: throw error if topic does not exist 2020-04-02 22:56:59 -04:00
Barış Soner Uşaklı
e93578b81d fix: hookname 2020-04-02 16:14:56 -04:00
Barış Soner Uşaklı
0d1b5a7fb1 fix: #8230, add hook getUserDataByUserSlug 2020-04-02 16:00:48 -04:00
psychobunny
15d6975e96 fix: ignore case for group details route 2020-04-02 12:45:01 -04:00
Barış Soner Uşaklı
740e598a5d fix: lint 2020-04-01 22:03:31 -04:00
Barış Soner Uşaklı
8e23dec84b fix: lint 2020-04-01 21:57:28 -04:00
Barış Soner Uşaklı
00e299e93e feat: closes #8229, add targetUid to action:password.change 2020-04-01 00:11:55 -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ı
071506eb7d fix: invite properly 2020-03-20 22:18:14 -04:00
Barış Soner Uşaklı
8f4b99a41c fix: admins not seeing invite button 2020-03-20 22:14:13 -04:00
Barış Soner Uşaklı
0b5fac75b0 fix: #8217, add missing lang key 2020-03-19 10:03:46 -04:00
Julian Lam
93acd13999 fix: #8206 first message in chat has false newSet 2020-03-16 21:15:04 -04:00
Barış Soner Uşaklı
d080c7b04c feat: add 2 hooks for modifying privileges 2020-03-12 12:25:51 -04:00
Barış Soner Uşaklı
f07f4f8e1a fix: #8202, filter non-existing users in search by uid 2020-03-11 12:19:20 -04:00