Julian Lam
f38b2a737a
fix: improper handling of single vs. multiple inputs for hidePrivateData
2022-06-29 16:19:52 -04:00
Julian Lam
3f5ae893c6
refactor: allow user.hidePrivateData() to handle an array of userData
2022-06-29 16:10:04 -04:00
Barış Soner Uşaklı
9acdc6808c
feat: allow unban/unmute on flag details page. closes #10593
2022-05-15 21:49:27 -04:00
Barış Soner Uşaklı
be6bbabd0e
feat: ability to mute users
...
new mute privilege
2022-03-11 23:07:20 -05:00
Barış Soner Uşaklı
a8afdc6019
fix : #10069 , don't modify fields array
...
use a single setObjectFields for the profile update
2021-12-08 18:38:02 -05:00
gasoved
97c8569a79
fix: hide private user data in api/v3/users/[uid]
2021-06-30 17:02:38 -04:00
Julian Lam
d3a9e76ae2
test(user): added additional tests for icon background colour
2021-02-19 11:38:48 -05:00
Julian Lam
955021247e
feat(user): icon background selector in change picture modal
2021-02-19 11:38:48 -05:00
Julian Lam
fbccf6e22f
refactor(user): all plugins to change list of icon background colours
...
One notable change is line 200, where a conditional was changed. The conditional used to check for `user.hasOwnProperty('picture')` and was added so that icons would only be included in the response if the picture was requested. This doesn't seem to apply as picture could be set regardless (see default avatar logic above), so I explicitly check `requestedFields` now.
2021-02-19 11:38:48 -05:00
Peter Jaszkowiak
5c2f0f0557
chore: eslint no-restricted-syntax
2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
2021-02-08 18:06:44 -05:00
gasoved
53e0d4d2e0
feat: banned-users group
2021-02-03 15:22:44 -05:00
Barış Soner Uşaklı
eaf62d39fd
fix : #9177 , handled multiple deleted users properly
2021-01-08 14:19:25 -05:00
Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
2020-11-20 16:32:39 -05:00
Barış Soner Uşaklı
1be08b2e8b
fix: guest displayname
2020-11-19 22:08:03 -05:00
Barış Soner Uşaklı
dbd814c25f
fix: spec, only call modifyUser on unique user objects
2020-11-19 10:23:19 -05:00
Barış Soner Uşaklı
ae5d4405c0
fix: setting
2020-11-19 01:14:13 -05:00
Barış Soner Uşaklı
9ca44e6f54
feat: add displayname into user obj #8637 ( #8909 )
...
* feat: add displayname into user obj #8637
* fix: spec
* perf: dont load settings if acp setting is turned off
2020-11-19 00:52:19 -05:00
Barış Soner Uşaklı
a05905f196
performance improvements ( #8795 )
...
* perf: nconf/winston/render
cache nconf.get calls
modify middleware.pageView to call next earlier
don't call winston.verbose on every hook see https://github.com/winstonjs/winston/issues/1669
translate header/footer separately and cache results for guests
* fix: copy paste fail
* refactor: style and fire hook only log in dev mode
* fix: cache key, header changes based on template
* perf: change replace
* fix: add missing await
* perf: category
* perf: lodash clone
* perf: remove escapeRegexChars
2020-10-26 10:43:18 -04:00
Barış Soner Uşaklı
59a2ace6f7
fix: only add blocksCount for self and admins
2020-07-01 23:16:20 -04:00
Barış Soner Uşaklı
bd228d5ee7
feat: fix blocksCount not being returned on user profile
...
add hook action:user.blocks.toggle
2020-07-01 22:56:18 -04:00
Barış Soner Uşaklı
a680a95e73
feat: add filter:user.getFields to match topic/posts
2020-06-17 11:46:42 -04:00
Barış Soner Uşaklı
75bcb0f484
fix: remove unused data from post/topic/user hashes
2019-10-07 23:13:43 -04:00
Barış Soner Uşaklı
dc8d721c46
refactor: async/await
2019-10-03 23:31:42 -04:00
Barış Soner Uşaklı
e2e33dfb1e
fix: status and groupTitle, if its not set
2019-07-19 19:39:57 -04:00
Barış Soner Uşaklı
d6e36c3166
feat: #7743 , user/create, user/data, user/delete
2019-07-14 00:22:17 -04:00
Julian Lam
808c4909a4
fix : #6438 only apply whitelist when fields request empty ( #7528 )
...
* fix : #6438 only apply whitelist when fields request empty
* feat: explicit password retrieval denied via getUsersFields
2019-04-10 13:55:53 -04:00
Aziz Khoury
3fbb6faf28
feat: update unban logic/invocation and refactor User.bans module
...
* auto unban when User.getUsersFields is called and the user is banned but has expired
* cleanups and removal of expiry_readable
* expiry_readable make an alias for backward compatibility
* User.bans.func vs User.*ban*Func
* console.log cleanups, plus todo message added
* use code util.deprecate
* fix: remove ununsed winston require
2019-04-05 14:14:48 -04:00
Barış Soner Uşaklı
c6ad8fae2a
fix : #7354
2019-02-11 14:29:25 -05:00
Barış Soner Uşaklı
9d28b935fd
dont load uid 0, -1 from db
2018-11-22 21:57:56 -05:00
Barış Soner Uşaklı
a6864a8055
add groupTitle test for guests
2018-11-21 23:34:08 -05:00
Barış Soner Uşaklı
e17c4b2766
uid fixes
2018-11-17 22:31:39 -05:00
Barış Soner Uşaklı
fb6067a7ca
only parse if field is requested
2018-10-25 19:58:01 -04:00
Barış Soner Uşaklı
f3a679e268
remove parseInts
2018-10-25 17:02:59 -04: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ı
f5fe91286e
closes #6851
2018-10-20 17:23:15 -04:00
Barış Soner Uşaklı
f53984aeae
refactor user/category data
2018-10-20 17:07:32 -04:00
Barış Soner Uşaklı
b2b33ffa57
topics data refactor
2018-10-20 16:10:02 -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
Julian Lam
7dfe953526
closes #6672
2018-07-26 14:36:25 -04:00
Julian Lam
8e822c7772
Added user consent pages ( #6430 )
...
- "Your Rights & Consent" user settings page
2018-04-09 12:23:53 -04:00
Barış Soner Uşaklı
47606c8df5
merge
2018-04-05 16:46:32 -04:00
Baris Usakli
aecbcd9e89
add verbose message for field whitelist
2017-11-22 16:26:35 -05:00
Baris Usakli
eeedba697b
closes #5804
2017-11-08 14:06:52 -05:00
Baris Usakli
9dc0069ce7
closes #5845
2017-08-01 14:09:55 -04:00
psychobunny
dd1cfd62d4
don't show rss_token in /api/user/name
2017-07-04 23:46:49 -04:00
Barış Soner Uşaklı
5a55c882ab
convert NaN uids to 0
2017-06-01 16:17:08 -04:00
Barış Soner Uşaklı
08aaabd33c
closes #5642
2017-05-27 23:32:55 -04:00
Barış Soner Uşaklı
114f416ec0
remove dupe code
2017-05-03 15:30:46 -04:00