Commit Graph

32 Commits

Author SHA1 Message Date
Julian Lam
e630f006ab fix: crash if error objecft passed to handleErrors contains no message 2024-08-07 14:18:44 -04:00
Barış Soner Uşaklı
285e40acab Revert "fix: handle unhandled exception at handleErrors"
This reverts commit 598c10c6a9.
2024-05-23 16:53:42 -04:00
Julian Lam
598c10c6a9 fix: handle unhandled exception at handleErrors 2024-05-21 12:39:27 -04:00
Barış Soner Uşaklı
06221a0ddf feat: add 500 page for missing tpls, closes #12230 2023-12-18 17:35:37 -05:00
Julian Lam
db5b0f47e0 feat: update error handler to check for pseudo-standard no-* prefix and route to 404 handler instead 2023-10-12 10:23:30 -04:00
Barış Soner Uşaklı
c9fabb0e1d refactor: add method to error messages 2022-01-14 14:34:08 -05:00
Barış Soner Uşaklı
65c5504193 fix: 403/400/500 page not generating csrf_token 2021-11-28 07:31:09 -05:00
Barış Soner Uşaklı
3dd681ebce fix: error pages dont have config.csrf_token 2021-11-28 06:42:19 -05:00
Barış Soner Uşaklı
0926ae6ecf fix: api session revoke test 2021-10-25 20:47:10 -04:00
Barış Soner Uşaklı
f4cf482a87 feat: show popular searches 2021-10-25 16:26:50 -04:00
Barış Soner Uşaklı
1d62bd6d7b refactor: log error as well 2021-10-21 12:34:26 -04:00
Barış Soner Uşaklı
73a9ca09c9 refactor: catch errors from buildHeader in error handler 🔥 2021-10-21 10:28:27 -04:00
Barış Soner Uşaklı
8e6bd7e913 refactor: show full url on error log 2021-10-14 19:00:03 -04:00
Julian Lam
7036c3751e feat: internationalize API error messages 2021-07-09 12:24:32 -04:00
Julian Lam
a54a3ee1ca fix: return proper API-style response if exception caught by error handler on v3 routes [breaking] 2021-07-09 12:24:32 -04:00
Barış Soner Uşaklı
46a454f194 feat: add bodyClass to 500 page 2021-06-18 09:55:08 -04: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
Julian Lam
6e2da9966e refactor: move plugin hook methods to plugin.hooks.* 2020-11-20 16:32:39 -05: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ı
7d08184372 fix: winston showing json object 2020-05-07 12:48:39 -04:00
Barış Soner Uşaklı
c72da5595a fix: #6806
3 new global privileges
view:users
view:tags
view:groups
2019-02-05 12:08:18 -05:00
Barış Soner Uşaklı
ae0fe5e880 feat: more naming 2018-12-17 16:56:38 -05:00
Barış Soner Uşaklı
1f918ca8f8 Home route (#7039)
* fix: WIP home fix

* remove console.log

* fix: #6949

on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
2018-11-30 21:35:57 -05:00
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
2018-10-27 06:26:50 -04:00
Julian Lam
8b0e6611d9 fixed incorrect parameter passed into hook 2017-09-12 18:55:47 -04:00
Julian Lam
9f4e92fa13 closes #5925 2017-09-12 13:46:51 -04:00
Peter Jaszkowiak
6cb8440715 Fix #5793
Use a custom header instead
2017-06-30 23:38:31 -06:00
Barış Soner Uşaklı
608a7d120c error handler tests 2017-05-10 21:02:36 -04:00
Peter Jaszkowiak
81696dd24a Fxi #5561 2017-03-31 14:45:03 -06:00
barisusakli
bc8d297377 move out error and 404 controllers 2017-03-02 14:57:33 +03:00