Commit Graph

86 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
a7d2b8a1fe refactor: async/await socket.io 2019-09-15 02:14:51 -04:00
Barış Soner Uşaklı
ec98945a5f refactor: remove commented out code 2019-09-11 16:41:25 -04:00
Barış Soner Uşaklı
a51ec591ee feat: #7743, finish user module 2019-07-16 20:44:00 -04: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
Baris Usakli
b83e50f286 remove delayImageLoading from api @julianlam 2018-11-20 17:20:07 -05:00
Barış Soner Uşaklı
69bb3293ee misc fixes
handle spider uids properly
2018-11-12 00:20:44 -05:00
Julian Lam
501b3a79ca Refactor skins to be built on server-side (#6849)
* WIP

* using bootswatch from npm instead of bootswatch CDN url

* feat: on-demand client css building for skins

* added ability for client-side to select a skin

* updated loading and saving logic of bootstrapSkin on client side user settings

* fix: broken test for #6849
2018-11-07 13:44:35 -05:00
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
2018-10-21 16:47:51 -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ı
6659a520e0 closes #6465 2018-04-22 09:10:02 -04:00
Baris Usakli
bf770636c5 closes #6377 2018-03-21 12:00:15 -04:00
Barış Soner Uşaklı
723f31a362 closes #6323 2018-02-14 11:53:57 -05:00
Barış Soner Uşaklı
7b6282f530 closes #6308 2018-02-12 17:12:24 -05:00
Barış Soner Uşaklı
b84e132601 remove unused settings 2017-12-10 16:35:34 -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
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
2017-11-15 21:35:10 -05:00
Barış Soner Uşaklı
6c755869cd add back missing onSettingsLoaded 2017-11-09 14:24:47 -05:00
Barış Soner Uşaklı
e7318a1cea Mongo cache (#6002)
* cache mongodb objects

remove user settings cache since it is cached at the object level

* removed indexOf from isMemberOfSets

* change has to get, change maxAge to 0
2017-10-23 18:31:16 -04:00
Baris Usakli
68bcfb2883 closes #5975 2017-10-12 13:54:53 -04:00
Baris Usakli
500c978a26 closes #5944 2017-10-12 13:03:43 -04:00
Baris Usakli
6cd0582b42 add filter:user.saveSettings 2017-07-26 16:30:08 -04:00
Peter Jaszkowiak
3c2d4fe649 Switch from underscore to lodash 2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
fa5026c92e clear settings cache on all nodes on save 2017-05-23 13:05:43 -04:00
Barış Soner Uşaklı
db532fbb0d fix user settings cache 2017-05-08 21:23:30 -04:00
Barış Soner Uşaklı
9ebbd65544 up user settings cache size 2017-05-03 17:24:31 -04:00
Barış Soner Uşaklı
e7d076a084 closes #5634 2017-05-03 16:36:34 -04:00
barisusakli
e85e35cf0c closes #5497 2017-03-05 00:46:18 +03:00
Peter Jaszkowiak
c4bdb72941 ESlint no-unneeded-ternary
and no-extend-native, no-sequences
2017-02-18 12:59:46 -07:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
277a7fb8b4 ESlint key-spacing, no-trailing-spaces 2017-02-18 01:27:46 -07:00
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
barisusakli
69b766bbc8 more tests 2016-12-02 17:05:46 +03:00
Peter Jaszkowiak
c5237443cd Standard language codes (#5218)
* Use standard language codes. Fallback for plugins.

* Fix transifex config

* Tab vs space here for some reason

* Remove redundancies

* config.relative_path instead of allcaps

* added upgrade script for existing users' accounts
2016-11-23 11:50:49 -05:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
HeeL
3fa1c1f927 Fix space-infix-ops linter rule 2016-10-13 11:42:29 +02:00
barisusakli
4b3b123cd0 closes #5042 2016-09-20 17:46:32 +03:00
barisusakli
6d34bb4657 closes #2166 2016-08-29 12:43:37 +03:00
barisusakli
b9ad7f2dbb remove unused group code from settings 2016-08-12 15:06:03 +03:00
barisusakli
a53f7f65db change homePageRoute logic 2016-08-05 16:45:46 +03:00
barisusakli
c042d16f40 dont set homePageRoute to custom if field is empty 2016-07-15 12:05:21 +03:00
Barış Soner Uşaklı
27ad34138b fix crash 2016-05-02 18:24:50 +03:00
barisusakli
94432ff796 closes #4582
remove leading /
2016-04-29 10:04:22 +03:00
barisusakli
6cc08f3868 fix indent 2016-04-14 18:44:44 +03:00
barisusakli
e564260650 moved groupTitle from user settings to user profile/edit 2016-04-14 18:41:52 +03:00
Julian Lam
a9f966f23c closes #4503, /cc @BenLubar 2016-04-07 11:32:18 -04:00
barisusakli
76fcc9ec35 this is fine 2016-03-24 12:53:44 +02:00
boomzillawtf
6aa0f8eb8a fix #4452: default to scroll to my post 2016-03-23 21:37:48 -04:00
boomzillawtf
ceb3b6ebe7 Add setting to avoid showing a post after it is submitted to keep the user's place on the page to address issue #4363 2016-03-16 17:55:58 -04:00