36 Commits (ddd07c1a9d08dad0018c22199ea6fafb471626f5)

Author SHA1 Message Date
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
6 years ago
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
6 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 6 years ago
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 😬
6 years ago
Baris Usakli fdbefa3d1f remove more parseInts 6 years ago
Barış Soner Uşaklı f5fe91286e closes #6851 6 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
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
6 years ago
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
6 years ago
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.
7 years ago
Barış Soner Uşaklı dcc896ee05 add tid to vote notifs 7 years ago
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
7 years ago
Peter Jaszkowiak 46fafb20b9 Remove string.js dependency 7 years ago
Baris Usakli bd5edc55aa closes #5086 8 years ago
Barış Soner Uşaklı 9af252b899 notifications tests 8 years ago
barisusakli 5a2ff8ed0a closes #5527 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
Mathias Schreck ce9ee62fa0 Handle callback errors 9 years ago
barisusakli 51a50448b8 closes #4838 9 years ago
Julian Lam 34f2d25651 fixes #4696 9 years ago
Julian Lam 38ad980456 Fixes #4694, fixes #4697 9 years ago
barisusakli 11d3834eb9 better filtering
if topic is followed but category ignored show it in unread
9 years ago
barisusakli bf2133ed7c topic watching 9 years ago
barisusakli b446ff42c3 style changes 9 years ago
barisusakli eb0aea6390 add /user/<uid> and /post/<pid> redirects
change notifications to use new redirects
9 years ago
Julian Lam e481ed21eb Using pid as discriminator for mergeId
... for favourite and upvote notifications.
9 years ago
barisusakli 52cec92df8 some cleanup, dont send ip on newpost 9 years ago
Ben Lubar 44431f8410 fix notifications that contain topic titles with commas in them 9 years ago
barisusakli 2b90040c31 closes #4236 9 years ago
Julian Lam 05df8900db closes #3912 9 years ago
Julian Lam 9db0f59432 part of #3912 9 years ago
barisusakli 8e80eca449 removed double escape 9 years ago
barisusakli 7f66494a57 closes #3764 9 years ago
barisusakli 12da13acc5 closes #3701 9 years ago