Commit Graph

9935 Commits

Author SHA1 Message Date
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
Barış Soner Uşaklı
85a07e999b fix: #7102 2018-12-12 13:46:13 -05:00
Barış Soner Uşaklı
263c918088 feat: remove uid:<uid>:ignored:cids (#7099)
use cid:<cid>:ignorers instead
2018-12-12 11:15:34 -05:00
Barış Soner Uşaklı
26ccd8f626 fix: db info page
if there is no connection to db, connect first
2018-12-10 15:30:10 -05:00
Barış Soner Uşaklı
a0f57c642c Merge branch 'master' of https://github.com/NodeBB/NodeBB 2018-12-10 14:40:17 -05:00
Barış Soner Uşaklı
a6c8e0ab4f fix: logAttempt conditional 2018-12-10 14:40:11 -05:00
Julian Lam
33d4956b76 fix: #7087, server-side protection against guest blocks 2018-12-10 14:14:37 -05:00
Barış Soner Uşaklı
78fa734017 feat: cache category tag whitelist 2018-12-09 16:03:41 -05:00
Barış Soner Uşaklı
81aa3a0b8a fix: don't crash in flags.validate if user blocked target 2018-12-09 15:25:43 -05:00
Barış Soner Uşaklı
fe0f95a2b1 fix: #7085 2018-12-08 19:51:26 -05:00
Barış Soner Uşaklı
e55fb43703 fix: #7086 2018-12-08 19:36:38 -05:00
Barış Soner Uşaklı
71163421aa fix: wrong variable #7085 2018-12-08 19:23:22 -05:00
Baris Usakli
df4f8cee4b remove node 6 2018-12-08 13:21:47 -05:00
Baris Usakli
e65d40c937 dont return undefined from sortedSetsCard if keys is empty or falsy 2018-12-07 16:50:35 -05:00
Baris Usakli
420227faae parseFloat scores 2018-12-07 16:01:08 -05:00
Julian Lam
4fba1492c1 feat: added new middleware authenticateOrGuest 2018-12-07 13:31:31 -05:00
Julian Lam
eeaee8ccef fix: not calling authenticate middleware on resource direct access
routes
2018-12-07 11:56:44 -05:00
Julian Lam
5f3d1c76c8 fix: #7038, autoLocale logic not playing nicely with no-refresh auths (#7059)
* fix: #7038, autoLocale logic not playing nicely with no-refresh auths

- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
  req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
  webserver.js into new middleware method.

* style: tests, use lodash

* fix: timeago strings not switching languages on login or out
2018-12-07 11:29:20 -05:00
Julian Lam
a07d9898df fix: #7071 buildSkinAsset won't rebuild continuously 2018-12-06 16:10:24 -05:00
Barış Soner Uşaklı
7ca62b8399 feat: closes #7070 2018-12-06 12:08:23 -05:00
Baris Usakli
96c1dc6276 unescape email subject 2018-12-05 17:38:18 -05:00
Baris Usakli
eab297bdc9 fix: #7061 2018-12-05 13:06:13 -05:00
oh
d7c55bc3f7 feat(email): don't escape html in notification bodies. (#7042)
allows for post replies, etc. to show the formatting of the orginal 
post, rather than looking garbled.

closes #7034
2018-12-05 12:46:41 -05:00
Baris Usakli
d3c6cba33f closes #7060 2018-12-05 11:22:44 -05:00
Baris Usakli
67ac8e3d06 closes #7053 2018-12-04 19:58:12 -05:00
Barış Soner Uşaklı
54c127d1b2 feat: allow array results 2018-12-04 15:29:50 -05:00
Barış Soner Uşaklı
f581c052ee feat: #7023
- add category selector to privileges and category create modals
- allow category selector to work for multiple selectors on same page
2018-12-04 14:32:43 -05:00
Barış Soner Uşaklı
a63ddbe2aa fix: #7040
if category doesn't exist return null and 404
2018-12-01 17:15:38 -05:00
Barış Soner Uşaklı
ec0c50d4e0 fix: #7041 2018-12-01 16:59:20 -05:00
Barış Soner Uşaklı
8d7c3897f2 fix: #7043 2018-12-01 16:58:52 -05:00
Barış Soner Uşaklı
cb7c2d8c28 fix: add missing render function 2018-12-01 04:37:55 -05:00