Commit Graph

11415 Commits

Author SHA1 Message Date
Peter Jaszkowiak
e1ca2d81f9 refactor: use loash when possible (#7230) 2019-01-12 14:28:53 -05:00
Barış Soner Uşaklı
9328eeca95 fix: escape hook method 2019-01-10 23:52:53 -05:00
Barış Soner Uşaklı
428f587cbe fix: #7208 2019-01-09 11:59:20 -05:00
Barış Soner Uşaklı
a662f118a5 fix: #7054 2019-01-08 19:28:30 -05:00
Barış Soner Uşaklı
b9833483ca fix: #7209 2019-01-08 18:56:12 -05:00
Julian Lam
70a87d4399 feat: support for one-click unsubscribe from email clients (#7203)
* feat: sending notifs via ACP creates real notification

re: #7202

* feat: basic integration for one-click unsubscription #7202

* feat: tests for #7202 + bugfix

* feat: added and organized digest unsub tests

closes #7202
2019-01-08 13:56:11 -05:00
Baris Usakli
1a3838e13c fix: missing notification 2019-01-04 13:41:19 -05:00
Baris Usakli
7809ba2800 fix: #7193, closes #7194 2019-01-04 13:27:41 -05:00
Julian Lam
0263b4daec feat: added new hook static:sockets.validateSession (#7189)
* feat: added new hook

* fix: improper .bind() call, +req in static:sockets.validateSession

* fix: restored original sessionStore logic, +hook

original logic to retrieve the sessionStore was not faulty, but
was changed for the sake of changing things, which ultimately
led to issues with tests, etc.
2019-01-03 21:14:30 -05:00
Barış Soner Uşaklı
6f1fb4eb24 fix: #https://github.com/barisusakli/nodebb-plugin-dbsearch/issues/49 2019-01-03 18:32:57 -05:00
Barış Soner Uşaklı
28459d04c6 fix: #7187 2019-01-03 13:08:42 -05:00
Baris Usakli
9aa1aa689d fix: #7174
always pass string in service
2019-01-02 15:27:32 -05:00
Baris Usakli
934e1854d3 remove unnecessary escape 2019-01-02 13:48:22 -05:00
Baris Usakli
0d409610c4 fix: #7181 2019-01-02 13:33:15 -05:00
Julian Lam
b0eaa858b5 fix: #7169 Fixed logout being broken 2018-12-27 16:50:51 -05:00
Barış Soner Uşaklı
72afc1806e fix: uid filtering 2018-12-24 16:05:11 -05:00
Barış Soner Uşaklı
41fb5cca81 fix: dont crash if default cover is invalid 2018-12-22 06:18:45 -05:00
Julian Lam
d81e0a5f5b fix: #7146 Better RTL handling on (de-)authentication
- RTL is applied (or unapplied) on login and logout depending on
  user language/guest-detected language.
- config is automatically saved into res.locals.config whenever
  loadConfig is called
- On login/logout, buildHeader is called instead of getting config
- On logout, req.uid is deleted instead of set to 0
2018-12-21 11:49:11 -05:00
Julian Lam
900f0a0b78 fix: #7118, invoking autoLocale middleware on logout
Also:
- firing client-side hook on header update
- updating bootbox locale on header update
2018-12-20 14:01:42 -05:00
Barış Soner Uşaklı
3917022a48 fix: #7139 2018-12-19 11:09:19 -05:00
Barış Soner Uşaklı
7e828404f6 fix: #7116
dont save relative_path in db for group covers
2018-12-18 19:43:28 -05:00
Baris Usakli
f4ea2c43ab feat: #7120 2018-12-18 13:56:06 -05:00
Baris Usakli
0c1ac4d6a2 feat: #7032 2018-12-18 13:44:03 -05:00
Barış Soner Uşaklı
d31684e8b8 fix: #7131 2018-12-17 19:03:33 -05:00
Barış Soner Uşaklı
fef7e13c9e feat: small fixes 2018-12-17 18:56:09 -05:00
Barış Soner Uşaklı
b2a74b4172 fix: remove cache 2018-12-17 17:54:33 -05:00
Barış Soner Uşaklı
b9b9d8b2e9 feat: name topic controller 2018-12-17 17:16:51 -05:00
Barış Soner Uşaklı
0cb9bba4da feat: header 2018-12-17 17:11:35 -05:00
Barış Soner Uşaklı
60390c01f1 fix: loop 2018-12-17 16:59:45 -05:00
Barış Soner Uşaklı
ae0fe5e880 feat: more naming 2018-12-17 16:56:38 -05:00
Barış Soner Uşaklı
f88db22ca2 feat: give the rest of the middlewares names 2018-12-17 16:36:43 -05:00
Barış Soner Uşaklı
fdfbcc6efe feat: give names to more middlewares 2018-12-17 16:23:38 -05:00
Barış Soner Uşaklı
53793e1603 feat: give names to middlewares 2018-12-17 16:03:01 -05:00
Barış Soner Uşaklı
4650a76036 fix: #7124 2018-12-16 00:09:13 -05:00
Barış Soner Uşaklı
9f5062682d fix: unread badge
- only increase unread badge if topic or category is watched
- fix logic for "there are new posts/topics" on /unread and /recent
2018-12-15 16:38:30 -05:00
Barış Soner Uşaklı
d2c2d56f59 feat: change sortedSetsScore 2018-12-15 00:57:51 -05:00
Barış Soner Uşaklı
99e0895e99 fix: move the check to get methods
all .post methods will have csrf
2018-12-14 23:38:05 -05:00
Julian Lam
fbe6ccd773 style: lint fix 2018-12-14 22:52:47 -05:00
Barış Soner Uşaklı
989879a6b5 fix: #7115 2018-12-14 21:18:42 -05:00
Barış Soner Uşaklı
14c4552304 dont modify session for spiders 2018-12-14 20:10:07 -05:00
Barış Soner Uşaklı
29b63ae7fb fix: #6979 2018-12-14 17:31:06 -05:00
Barış Soner Uşaklı
0eef3e1c27 fix: upgrade script key 2018-12-14 16:51:32 -05:00
Barış Soner Uşaklı
00afc5b3ab fix: remove log 2018-12-14 16:36:07 -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
Ben Lubar
ff5b04beb9 Log port number of current instance in addition to pid. (#7110) 2018-12-14 11:21:46 -05:00
Barış Soner Uşaklı
8169739069 fix: #7108 2018-12-14 10:16:59 -05:00
Barış Soner Uşaklı
62f01a839e fix: dont save data for non-positive uids 2018-12-14 00:09:15 -05:00
Barış Soner Uşaklı
f103390aa5 fix: #7103
update counter when user navigates to /unread
fix new topic alert on /unread
moved unread code from footer to unread
2018-12-12 19:43:35 -05:00
Barış Soner Uşaklı
2f57a4b9a6 fix: dont update cid:<cid>:tids:votes if topic is pinned 2018-12-12 14:35:51 -05:00
Barış Soner Uşaklı
d117df77f7 fix: #7102 2018-12-12 14:26:11 -05:00