672 Commits (5ed7fc0ffa12fe24e793d87771bce7a541098e02)

Author SHA1 Message Date
Barış Soner Uşaklı 4650a76036 fix: #7124 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
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
6 years ago
Barış Soner Uşaklı d117df77f7 fix: #7102 6 years ago
Barış Soner Uşaklı 85a07e999b fix: #7102 6 years ago
Barış Soner Uşaklı 263c918088
feat: remove uid:<uid>:ignored:cids (#7099)
use cid:<cid>:ignorers instead
6 years ago
Barış Soner Uşaklı 78fa734017 feat: cache category tag whitelist 6 years ago
Barış Soner Uşaklı 7ca62b8399 feat: closes #7070 6 years ago
Baris Usakli eab297bdc9 fix: #7061 6 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 6 years ago
Baris Usakli 1bb6067e19 suggested topics fix, if search doesn't return enough topics 6 years ago
Barış Soner Uşaklı b8c08a5417 dont call db for guests 6 years ago
Barış Soner Uşaklı e17c4b2766 uid fixes 6 years ago
Barış Soner Uşaklı 69bb3293ee misc fixes
handle spider uids properly
6 years ago
Barış Soner Uşaklı 96e986a865 optimize suggested topics/search 6 years ago
Barış Soner Uşaklı f8e219c323 handle empty set, add test 6 years ago
Barış Soner Uşaklı 973b5fcfe0 closes #6932 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
Barış Soner Uşaklı 2df19c0ae4 fix typo 6 years ago
Barış Soner Uşaklı ed7399f9ed shorter code 6 years ago
Barış Soner Uşaklı c27be9db5a
Recent refactor (#6879)
* wip

* fix inf scroll

* remove duplicated code

* remove dupe code in /unread

* use topicList

* update tag page to use topicList

* fix tests

* combine ifs

* remove more dupe code

* disable timeout
6 years ago
Baris Usakli 12f3f56b01 change to .exists 6 years ago
Baris Usakli 566564ed74 fix redis tests
fixed typo in groups/data.js
added postcount,viewcount to int fields
6 years ago
Barış Soner Uşaklı fb6067a7ca only parse if field is requested 6 years ago
Barış Soner Uşaklı f3a679e268 remove parseInts 6 years ago
Barış Soner Uşaklı aca50f1fe1 dont crash if topic is moved to pinned topic 6 years ago
Barış Soner Uşaklı 728e7bdae9 remove more parseInts 6 years ago
Barış Soner Uşaklı 537b7ff7e8 remove more parseInts 6 years ago
Baris Usakli a228dc2de9 closes #6797 6 years ago
Baris Usakli 138154a71c move modules 6 years ago
Baris Usakli fdbefa3d1f remove more parseInts 6 years ago
Baris Usakli 881185ae59 closes #6857 6 years ago
Barış Soner Uşaklı ac39112271 remove more parseInts 6 years ago
Barış Soner Uşaklı 9c022afae1
Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
6 years ago
Barış Soner Uşaklı f5fe91286e closes #6851 6 years ago
Barış Soner Uşaklı c3a903142a closes #6850 6 years ago
Barış Soner Uşaklı b2b33ffa57 topics data refactor 6 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
Baris Usakli b4d8b7cf38 move sorted topics code out of recent 6 years ago
Barış Soner Uşaklı 8079d3d3b7 add tids used to returned data 6 years ago
Barış Soner Uşaklı c06480b82e add tests for blocked users teaser/unread 6 years ago
Barış Soner Uşaklı a0f5461860
don't set and read from topic hash in parallel (#6831)
this was causing a test to fail, although very rarely
6 years ago
Barış Soner Uşaklı ba21c5170a moved increase/decrease
moved these two methods into addPostToTopic&removePostFromTopic
6 years ago
Barış Soner Uşaklı 5c7dd54815
fix zsets and update them on post move, closes #6823 (#6827) 6 years ago
Barış Soner Uşaklı 4b970a1072 use lodash, load 3 posts per iteration 6 years ago
Barış Soner Uşaklı 1590452697 filter topics you cant read @benlubar 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ı 17ce482c9f closes #6780 6 years ago
Barış Soner Uşaklı b7ead6dc9c
Replace jimp with sharp (#6774)
* add probe image size and max image size

* replace jimp and image-probe with sharp

* better name for test

* resize with just path

* resize thumb inplace

* use filename
6 years ago
Barış Soner Uşaklı 08dfb3470c fix tests 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
Barış Soner Uşaklı 37ca5a1c63 filter falsy teasers 7 years ago
Barış Soner Uşaklı 93d52ef338 default to 'recent' sort 7 years ago
Barış Soner Uşaklı 6f18cf368b closes #6741 7 years ago
Baris Usakli e7bd0cea74 fix lint 7 years ago
Baris Usakli bcef32c5af closes #6645 7 years ago
Baris Usakli f830322ee9 closes #6597 7 years ago
Barış Soner Uşaklı ccad95cf73 closes #6579 7 years ago
Barış Soner Uşaklı f7a0815b46 fix redis tests 7 years ago
Barış Soner Uşaklı 2c3fd5fbce remove some dupe code 7 years ago
Barış Soner Uşaklı 2fd2accf8c add tests for top topics
fix popular page displaying 18 topics per page
7 years ago
Julian Lam cb3b2bd27b closes #6562 7 years ago
Barış Soner Uşaklı f77e7de285 closes #6067 7 years ago
Barış Soner Uşaklı 81328806a0 closes #6511 7 years ago
Barış Soner Uşaklı 4ee2284066 closes #6489 7 years ago
Julian Lam 4f6cc20457 completed basic integration for #6463 7 years ago
Julian Lam bfee23adee basic methods and initial integration for #6463 7 years ago
Barış Soner Uşaklı 749b282cdd add matchwords to search api 7 years ago
Barış Soner Uşaklı 40d5b4f8ba change to eachSeries 7 years ago
Barış Soner Uşaklı 225af93b9e closes #6329 7 years ago
Ben Lubar 00776bdd8e Bookmark optimization (#6315)
* Set the user's bookmark if their current bookmark is past the end of the topic.

* Optimize forked topic bookmark updating.

Remove support for updating bookmarks for users who sort by votes.

Don't even consider updating bookmarks for users who have not read the posts being removed.

Only compute post indices once per fork operation instead of once per user that has ever read the topic.
7 years ago
Barış Soner Uşaklı 3551a34138 up spam be gone 7 years ago
Barış Soner Uşaklı f119ae3103 dont show same topic in suggested 7 years ago
Barış Soner Uşaklı c38edb1fd4 more changes to suggested topics 7 years ago
Barış Soner Uşaklı 9d3b00f778 shuffle suggested topics, search in same category 7 years ago
Barış Soner Uşaklı 8427601b04 closes #6287 7 years ago
Barış Soner Uşaklı 2e2b97033e closes #6248 , closes #6282 7 years ago
Barış Soner Uşaklı 8ceb102ed3 closes #6274 7 years ago
Barış Soner Uşaklı f3fda152bf closes #6216 7 years ago
Barış Soner Uşaklı 2f3b7279be closes #6212 7 years ago
Barış Soner Uşaklı 510e57d414 on new topic create add to votes sorted set 7 years ago
Barış Soner Uşaklı ba56810790 upgrade script fixes 7 years ago
Barış Soner Uşaklı 9d7e0775aa closes #6214 7 years ago
Barış Soner Uşaklı b58387c822 closes #6214 7 years ago
Barış Soner Uşaklı baa868cf2b fix lint 7 years ago
Barış Soner Uşaklı d2ffdbda7d closes #6203 7 years ago
Barış Soner Uşaklı 2661a31227 closes #6202 7 years ago
Barış Soner Uşaklı a9e15ae9d0 strip img tags on topic teaser 7 years ago
Barış Soner Uşaklı 2565b6e542 on pin remove from votes sorted set 7 years ago
Barış Soner Uşaklı b9d4b02780 sort tags by score 7 years ago
Barış Soner Uşaklı a166304dcb #6158
remove from sorted sets on delete/purge
7 years ago
Barış Soner Uşaklı 43180d4b83 #6158 7 years ago
Baris Usakli 3551d7d68e closes #4804 7 years ago
Barış Soner Uşaklı 4f2f84e47c #4804 7 years ago
Barış Soner Uşaklı dd176dd5f2
Notification delivery (#6072)
* ability for users to choose how they receive notifications

add type field to more notifications, the type field is used to
determine what to do based on user
setting(none,notification,email,notificationemail)

* change var name to types

* cleanup

* add event types for privileged users

* remove unused language keys

* fix uids check

* changed if statements

* upgrade script to preserver old settings
7 years ago
Baris Usakli 43bec4cb45 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 7 years ago
Baris Usakli 6778cce265 add new zset 7 years ago
Baris Usakli 47143a4a09 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 7 years ago
Baris Usakli a500e0019c closes #6005 7 years ago
Baris Usakli c4310395c9 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	package.json
7 years ago