Commit Graph

38 Commits

Author SHA1 Message Date
Julian Lam
745a9589e9 Use topics:read privilege for topic filtering use cases (#7462)
* fix: use topics:read privilege for topic filtering use cases

* fix: tests

* fix: more broken tests
2019-03-16 14:51:46 -04:00
Barış Soner Uşaklı
72afc1806e fix: uid filtering 2018-12-24 16:05:11 -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ı
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
Peter Jaszkowiak
ba619c7ec8 style(eslint): match operator-linebreak preferences 2018-11-30 13:38:59 -05:00
renovate[bot]
64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
2018-11-07 15:53:14 -05:00
Baris Usakli
fdbefa3d1f remove more parseInts 2018-10-23 13:59:28 -04:00
Barış Soner Uşaklı
f5fe91286e closes #6851 2018-10-20 17:23:15 -04:00
Barış Soner Uşaklı
26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Barış Soner Uşaklı
cf75c79611 Unread changes closes #6781 (#6783)
* WIP

* more unread work

* faster teaser block handling

if user doesn't have anyone blocked don't check

* much faster filtering of blocked posts

* add missing uid

* add tidsByFilter to return

* dont load all pids to find previous non-blocked teaser

* fix unread filters

they no longer use unread/new unread/watched etc they are query strings now

* shorter nav item code

* add unreplied to filters

fix icons not clearing to 0
dont increment unread counters if there is a reply in a topic where you ignored the topic creator
2018-09-24 12:58:59 -04:00
Barış Soner Uşaklı
b43bfa3d5b closes #6759
-moved user.blocks.filter from unread controller to getUnreadTopics so
topics are filtered at other places this function is called
- when a new post is made do not send it to uids that have blocked the
poster
- update getUnreadTids so it does not return topics that have new posts
from blocked users
- update hasReadTopics so it does not return false data if topic has new
posts from blocked users
2018-09-14 16:23:21 -04:00
Ben Lubar
f1a6537fc2 Add notification frequencies from nodebb-plugin-upvote-notifications. (#6640)
* Add notification frequencies from nodebb-plugin-upvote-notifications.

https://github.com/boomzillawtf/nodebb-plugin-upvote-notifications

* Fix editing settings clearing upvote notification preferences.
2018-07-20 10:29:51 -04:00
Barış Soner Uşaklı
dcc896ee05 add tid to vote notifs 2018-02-14 13:40:12 -05:00
Peter Jaszkowiak
74ceb78800 Upvote notification frequency selection (#6087)
Closes #5963

- Notify on every upvote
- Notify on every tenth upvote
- Notify logarithmically (on 10, 100, 1000...)
- Disable upvote notifications
2017-11-21 14:14:14 -05:00
Peter Jaszkowiak
46fafb20b9 Remove string.js dependency 2017-10-13 21:02:41 -06:00
Baris Usakli
bd5edc55aa closes #5086 2017-08-02 13:45:00 -04:00
Barış Soner Uşaklı
9af252b899 notifications tests 2017-05-20 21:01:55 -04:00
barisusakli
5a2ff8ed0a closes #5527 2017-03-14 23:03:09 +03:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
Mathias Schreck
ce9ee62fa0 Handle callback errors 2016-08-17 12:54:59 +02:00
barisusakli
51a50448b8 closes #4838 2016-07-12 18:03:14 +03:00
Julian Lam
34f2d25651 fixes #4696 2016-05-27 11:59:37 -04:00
Julian Lam
38ad980456 Fixes #4694, fixes #4697 2016-05-27 11:35:58 -04:00
barisusakli
11d3834eb9 better filtering
if topic is followed but category ignored show it in unread
2016-05-19 13:11:42 +03:00
barisusakli
bf2133ed7c topic watching 2016-05-18 19:02:43 +03:00
barisusakli
b446ff42c3 style changes 2016-05-06 13:47:10 +03:00
barisusakli
eb0aea6390 add /user/<uid> and /post/<pid> redirects
change notifications to use new redirects
2016-05-05 20:24:09 +03:00
Julian Lam
e481ed21eb Using pid as discriminator for mergeId
... for favourite and upvote notifications.
2016-04-07 21:22:56 -04:00
barisusakli
52cec92df8 some cleanup, dont send ip on newpost 2016-03-24 20:55:17 +02:00
Ben Lubar
44431f8410 fix notifications that contain topic titles with commas in them 2016-03-20 16:28:21 -05:00
barisusakli
2b90040c31 closes #4236 2016-02-23 16:46:10 +02:00
Julian Lam
05df8900db closes #3912 2015-12-16 12:15:26 -05:00
Julian Lam
9db0f59432 part of #3912 2015-12-16 12:15:26 -05:00
barisusakli
8e80eca449 removed double escape 2015-10-21 16:59:19 -04:00
barisusakli
7f66494a57 closes #3764 2015-10-19 12:59:40 -04:00
barisusakli
12da13acc5 closes #3701 2015-10-02 18:55:23 -04:00