Julian Lam
f38b2a737a
fix: improper handling of single vs. multiple inputs for hidePrivateData
3 years ago
Julian Lam
3f5ae893c6
refactor: allow user.hidePrivateData() to handle an array of `userData`
3 years ago
Barış Soner Uşaklı
9acdc6808c
feat: allow unban/unmute on flag details page. closes #10593
3 years ago
Barış Soner Uşaklı
be6bbabd0e
feat: ability to mute users
...
new mute privilege
3 years ago
Barış Soner Uşaklı
a8afdc6019
fix : #10069 , don't modify fields array
...
use a single setObjectFields for the profile update
3 years ago
gasoved
97c8569a79
fix: hide private user data in api/v3/users/[uid]
4 years ago
Julian Lam
d3a9e76ae2
test(user): added additional tests for icon background colour
4 years ago
Julian Lam
955021247e
feat(user): icon background selector in change picture modal
4 years ago
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.
4 years ago
Peter Jaszkowiak
5c2f0f0557
chore: eslint no-restricted-syntax
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
gasoved
53e0d4d2e0
feat: banned-users group
4 years ago
Barış Soner Uşaklı
eaf62d39fd
fix : #9177 , handled multiple deleted users properly
4 years ago
Julian Lam
6e2da9966e
refactor: move plugin hook methods to plugin.hooks.*
4 years ago
Barış Soner Uşaklı
1be08b2e8b
fix: guest displayname
4 years ago
Barış Soner Uşaklı
dbd814c25f
fix: spec, only call modifyUser on unique user objects
4 years ago
Barış Soner Uşaklı
ae5d4405c0
fix: setting
4 years ago
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
4 years ago
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
4 years ago
Barış Soner Uşaklı
59a2ace6f7
fix: only add blocksCount for self and admins
5 years ago
Barış Soner Uşaklı
bd228d5ee7
feat: fix blocksCount not being returned on user profile
...
add hook action:user.blocks.toggle
5 years ago
Barış Soner Uşaklı
a680a95e73
feat: add filter:user.getFields to match topic/posts
5 years ago
Barış Soner Uşaklı
75bcb0f484
fix: remove unused data from post/topic/user hashes
5 years ago
Barış Soner Uşaklı
dc8d721c46
refactor: async/await
5 years ago
Barış Soner Uşaklı
e2e33dfb1e
fix: status and groupTitle, if its not set
6 years ago
Barış Soner Uşaklı
d6e36c3166
feat: #7743 , user/create, user/data, user/delete
6 years ago
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
6 years ago
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
6 years ago
Barış Soner Uşaklı
c6ad8fae2a
fix : #7354
6 years ago
Barış Soner Uşaklı
9d28b935fd
dont load uid 0, -1 from db
6 years ago
Barış Soner Uşaklı
a6864a8055
add groupTitle test for guests
6 years ago
Barış Soner Uşaklı
e17c4b2766
uid fixes
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ı
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ı
f53984aeae
refactor user/category data
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
Julian Lam
7dfe953526
closes #6672
7 years ago
Julian Lam
8e822c7772
Added user consent pages ( #6430 )
...
- "Your Rights & Consent" user settings page
7 years ago
Barış Soner Uşaklı
47606c8df5
merge
7 years ago
Baris Usakli
aecbcd9e89
add verbose message for field whitelist
7 years ago
Baris Usakli
eeedba697b
closes #5804
7 years ago
Baris Usakli
9dc0069ce7
closes #5845
8 years ago
psychobunny
dd1cfd62d4
don't show rss_token in /api/user/name
8 years ago
Barış Soner Uşaklı
5a55c882ab
convert NaN uids to 0
8 years ago
Barış Soner Uşaklı
08aaabd33c
closes #5642
8 years ago
Barış Soner Uşaklı
114f416ec0
remove dupe code
8 years ago