Commit Graph

91 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
4b970a1072 use lodash, load 3 posts per iteration 2018-09-27 09:52:56 -04:00
Barış Soner Uşaklı
1590452697 filter topics you cant read @benlubar 2018-09-25 11:14:25 -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ı
17ce482c9f closes #6780 2018-09-22 01:28:13 -04:00
Barış Soner Uşaklı
08dfb3470c fix tests 2018-09-14 18:00:52 -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
Barış Soner Uşaklı
2fd2accf8c add tests for top topics
fix popular page displaying 18 topics per page
2018-06-15 15:23:30 -04:00
Baris Usakli
a500e0019c closes #6005 2017-10-30 15:26:17 -04:00
Baris Usakli
19dc7da42f closes #5994 2017-10-19 13:53:05 -04:00
Barış Soner Uşaklı
38af651072 use _.uniq 2017-06-25 20:00:05 -04:00
Barış Soner Uşaklı
f1b8492164 remove unnecessary checks 2017-05-27 00:30:07 -04:00
Barış Soner Uşaklı
f6ac92111b style changes 2017-05-26 00:02:20 -04:00
Barış Soner Uşaklı
b3a265f981 closes #5694 2017-05-19 18:50:19 -04:00
Peter Jaszkowiak
6b05f6c5e9 Add hook filter:topics.getUnreadTids
Allows for filtering topics from unread count and unread page
2017-05-13 18:46:11 -06:00
barisusakli
75e5f2da74 closes #5485 2017-04-21 21:36:42 -04:00
Julian Lam
d18cfced96 Merge remote-tracking branch 'origin/master' into develop 2017-04-12 23:57:14 -04:00
Peter Jaszkowiak
1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
Julian Lam
860999fa6c Merge remote-tracking branch 'origin/master' into develop 2017-03-10 15:44:29 -05:00
barisusakli
0c8058ba9d closes #5516 2017-03-09 22:36:28 +03:00
Julian Lam
72e77772db Merge branch 'master' into develop 2017-02-24 12:46:40 -05:00
Peter Jaszkowiak
1493afee2a ESlint indent 2017-02-18 02:38:03 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
a5a3f3089a ESlint no-mixed-operators 2017-02-18 01:51:11 -07:00
Peter Jaszkowiak
277a7fb8b4 ESlint key-spacing, no-trailing-spaces 2017-02-18 01:27:46 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
barisusakli
366ab103a4 closes #5405 2017-01-27 20:38:01 +03:00
barisusakli
49267d54b7 topics unread tests 2016-11-28 14:15:20 +03:00
barisusakli
fb47bf3889 unread/recent changes closes #4774 2016-11-03 13:06:25 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
4ce8e2224a optimize topics.markTopicNotificationsRead
let's not call it once for each tid
2016-09-19 23:43:50 +03:00
barisusakli
4bbc8110a9 closes #4772 2016-06-21 14:43:38 +03: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
84a7b6690b closes #4434 2016-05-13 14:08:50 +03:00
barisusakli
ec33a57f77 closes #3128 2016-04-18 15:44:07 +03:00
Ben Lubar
217f0c5652 Switch to a named filter for unread to allow future expansion.
Don't use the query string as it is not passed to infinite scroll.
2016-04-08 13:42:47 -05:00
Ben Lubar
a61d947295 allow filtering /unread to only topics that have not yet been seen 2016-04-08 13:31:21 -05:00
pichalite
5f6a1a0acd complete fixes for #4144 2016-02-26 00:04:56 +00:00
barisusakli
aa30973f0a fix params 2016-01-07 20:29:31 +02:00
barisusakli
c28494724f filter dupes 2016-01-04 22:50:51 +02:00
barisusakli
eb57276980 fix test 2016-01-04 15:08:07 +02:00
barisusakli
c10b2fdb60 closes #4022 2016-01-04 14:33:47 +02:00
barisusakli
7ad90b4ef6 closes #2659 2016-01-04 11:22:35 +02:00
barisusakli
1ecf27417a removed commented out stuff removed topics.enter 2015-11-05 11:53:17 -05:00
barisusakli
5e5cafafd0 make one socket call to load unread counts 2015-10-20 19:19:50 -04:00
barisusakli
872080d832 dont mark read if topic is not in topics:recent 2015-10-02 16:56:30 -04:00
barisusakli
47cc1083df fix mark all read 2015-07-28 15:03:20 -04:00
barisusakli
81eeab42ed category filter on /unread 2015-07-13 14:47:15 -04:00
barisusakli
b7b44e13b1 added privileges.topics.filterUids
if a topic is deleted and user doesn't have permissions/admin/mod dont
send notifs
2015-04-18 16:34:32 -04:00
cismous
68cf6833b7 remove unneeded argument 2015-03-27 23:59:39 +08:00