gasoved
62187caa67
feat: post auto flagging on downvotes #10029 ( #10367 )
...
* feat: post auto flagging on downvotes
* fix: just get one admin
3 years ago
Barış Soner Uşaklı
dbf7a45828
fix : #10292 , delete missing fields
3 years ago
Julian Lam
d5ed8736aa
feat: deleting a user upload dissociates from posts, and vice versa
3 years ago
Julian Lam
8c2752bab1
test: user uploads.js tests
3 years ago
Julian Lam
11275d6809
test: testing user upload methods, already fixed one bug
3 years ago
Julian Lam
b9edee143e
fix: local deleteUploads() method in `src/user/delete.js` to call `User.deleteUpload()`
3 years ago
Julian Lam
7ef9c7d220
refactor: .deleteUpload() to accept array of paths
3 years ago
Julian Lam
ea36016d87
refactor: fix user uploads paths, and associate uid with user uploads
3 years ago
Julian Lam
6489e9fd9e
refactor: change the post uploads' hash seeds to have the `files/` prefix
3 years ago
Julian Lam
6aae2e5d89
Revert "fix: proactively guard against homograph characters in website values"
...
This reverts commit fa7dcdb968
.
3 years ago
Barış Soner Uşaklı
489c0d3015
refactor: remove extra zset remove, closes #10277
3 years ago
Barış Soner Uşaklı
7f1c4477e3
feat: allow gif profile images, sharp 0.30.0 supports gifs
3 years ago
Julian Lam
fa7dcdb968
fix: proactively guard against homograph characters in website values
3 years ago
Julian Lam
165a1d8b76
Revert "fix: update usage of emailer.send to not catch (as errors are no longer thrown), email error throttler"
...
This reverts commit d4e5259fcf
.
3 years ago
Julian Lam
d4e5259fcf
fix: update usage of emailer.send to not catch (as errors are no longer thrown), email error throttler
3 years ago
Magnus
7bd3e31dec
Fullname in notifications ( #10157 )
...
* init - fullname notifications setting
* fullname in topic reply
* fullname for group-request-membership
* fullname for group-leave notification
* fullname for new-post-flag & new-user-flag
* removed log
* fullname for user follow
* fullname in message notification
* fullname in follow
* fullname for sendNotificationToPostOwner
* fullname in sendNotificationToTopicOwner
* fullname in doExport
* shorthand name set
* shorter name set
* fullname in notifications
* displayname for notifications
* removed unused require
3 years ago
Barış Soner Uşaklı
d1eb21c56d
fix : #10173 , don't show optional message if email is required
3 years ago
Julian Lam
6ca216ab6e
feat: revoke user sessions on successful password reset
3 years ago
Julian Lam
be4dbe3441
chore: org; merge consecutive await calls into one Promise.all
3 years ago
Julian Lam
ffdf26afef
docs: comment hint :shipit:
3 years ago
Barış Soner Uşaklı
1e60ae8703
refactor: change error message
3 years ago
Barış Soner Uşaklı
1264dcb555
test: add email interstitial tests
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
Barış Soner Uşaklı
9627fa9029
refactor: always returns array
3 years ago
Barış Soner Uşaklı
830166d120
fix : #10067 , count posts instead of incr/decr
3 years ago
Barış Soner Uşaklı
2473d5d873
fix : #10027 , properly auto confirm first user
3 years ago
Barış Soner Uşaklı
fb363957d1
refactor: tab rules
3 years ago
Julian Lam
09e0c6d503
feat: add feature flag to disable verification emails, closes #9996
3 years ago
Julian Lam
c1ac291284
fix: ability to enumerate email via updateProfile method
3 years ago
Julian Lam
b912a564e3
fix: accidentally not clearing email when said email is confirmed for a different uid
3 years ago
Julian Lam
6b4f35c2fa
feat: new plugin hook to allow plugins to reject email address on new registration or email change
3 years ago
Barış Soner Uşaklı
90b81262fa
refactor: remove unused var
3 years ago
Barış Soner Uşaklı
9cb4de50a2
fix: biweekly digest #8053
3 years ago
Barış Soner Uşaklı
8e319a9b25
refactor: catch errors from digest
3 years ago
Barış Soner Uşaklı
f7967bdf68
feat: #8053 , biweekly digest option
3 years ago
Barış Soner Uşaklı
a9bc6a0962
refactor: allow array of uids for blocks.is/list
...
remove async.filter
use cacheCreate
3 years ago
Barış Soner Uşaklı
f24b630e1a
feat: add userData to static:user.delete
3 years ago
Julian Lam
58e0a366c8
fix : #9834 , missing null email check on new registrations, added tests
3 years ago
Barış Soner Uşaklı
c4fc7bf9b5
fix : #9818 , fix totalTime calculation
3 years ago
Barış Soner Uşaklı
05ddd60c5e
dont check empty emails in queue
3 years ago
Barış Soner Uşaklı
7f48edc02a
feat: add uid to filter:user.saveSettings
4 years ago
Julian Lam
006fc700dd
feat: add ACP option to require email address on new registration
4 years ago
Julian Lam
0e05cbe1f7
feat: show instructional modal after email change request
4 years ago
Julian Lam
e95df2f066
refactor: move interstitials into its own file in `src/user/`
4 years ago
Julian Lam
96398faa3c
feat: plumb current session id into email removal/confirmation flow, so all other sessions are revoked except for the current session
...
This utilises the new argument in user.auth.revokeAllSessions
4 years ago
Julian Lam
b0a4a1d3e4
feat: allow revokeAllSessions method to revoke all sessions except that which is passed in (new arg)
4 years ago
Julian Lam
ccf004f1f4
refactor: added user.email.remove method, updated email interstitial to handle email removal
4 years ago
Julian Lam
3bcd1f1438
fix: email validation flow, so that it actually works, fixed event logging bug, new email verification template
4 years ago
Julian Lam
caf8968791
fix: accidental early return in confirmByCode, tests, race condition
...
A race condition caused mongo/psql tests to fail.
4 years ago
gasoved
a917210c5b
feat: invites no longer require email
4 years ago
Julian Lam
81611ae1c4
fix(emails): broken test for api/user/email/:email
...
+ fixed broken tests due to unexpected behaviour for email confirmation
4 years ago
Julian Lam
c4e3362bd3
feat(emails): restore ability for admins to edit a user's email address [breaking]
...
The edited user's email will be automatically confirmed
4 years ago
Julian Lam
e726048e0c
fix(emails): don't automatically associate email during user creation if passed in at registration
4 years ago
Julian Lam
087e6020e4
refactor(email): validation checking methods, +tests fix
4 years ago
Julian Lam
69c96dd23c
refactor(emails): more work in update email interstitial, interstitial skipping, email change on confirmation, deprecation of requireEmailConfirmation
4 years ago
Julian Lam
f365bc4600
refactor(emails): interstitial for adding/updating email
4 years ago
gasoved
97c8569a79
fix: hide private user data in api/v3/users/[uid]
4 years ago
Barış Soner Uşaklı
1bf263c4a2
9622 ( #9625 )
...
* fix : #9622
dont allow regular user to remove system tags
* refactor: add guest/spider check to isPrivileged
string/trim tag
4 years ago
gasoved
8168c6c407
fix: purge uploaded images accordingly #9606 ( #9611 )
...
* fix: purge uploaded images accordingly
* fix: tests
* fix: relative paths
4 years ago
Julian Lam
5c42b3eab0
test: fixed broken tests from #9605 , removed token clean on token usage as it is superceded by token clean on generation (+ associated test)
4 years ago
Julian Lam
229f96f872
fix : #9605 , expire all active reset tokens for a uid if that uid generates a new one
4 years ago
Barış Soner Uşaklı
8ea58432c9
feat: show ip on acp manage users
...
update url on search
show matching ip when searching by ip
add ip to export csv
4 years ago
Barış Soner Uşaklı
ca72aa93d7
Locks bug failing test ( #9595 )
...
* test: failing test for issue
* fix : #9593 , don't lock if email is identical to username
* fix: lock calls after first call
* fix: add back email check
* test: remove invalid test
Co-authored-by: Julian Lam <julian@nodebb.org>
4 years ago
Barış Soner Uşaklı
4afca6900b
feat: add filter:user.getWatchedCategories
4 years ago
Barış Soner Uşaklı
285aa36556
feat: allow exists methods to work with arrays and single id
4 years ago
gasoved
077330b764
feat: scheduled topics ( #9399 )
...
* feat: scheduled topics
* refactor: linting fixes
* fix: tests
* fix(test): race condition
* fix: make a single request
4 years ago
Barış Soner Uşaklı
3aa26c4df2
fix : #9339 , only log email errors once per digest, notification push
...
show notice in acp
4 years ago
Julian Lam
bfd512b99b
feat: expose username validation logic to user lib, new hook `filter:username.check`
4 years ago
Barış Soner Uşaklı
0af9d26fe5
feat: change uploadCroppedPicture to use updateProfile as well
4 years ago
Barış Soner Uşaklı
a598abcd8e
feat: use updateProfile for picture change
...
so it triggers action:user:updateProfile
4 years ago
Barış Soner Uşaklı
02f08111cf
feat: keep notifs for one month, load 50 notifications instead of 30
4 years ago
Julian Lam
f561799f74
refactor: abstract out some client side dashboard code into modules, analytics subpages for users, topics, and logins
4 years ago
Julian Lam
079a13d41a
feat: new hooks for notifications get/getCount
4 years ago
Julian Lam
dbe5f7027b
fix: wrong call to sortedSetAdd
4 years ago
Julian Lam
16d3c45782
feat: report login statistics from analytics data, instead of its own zset
4 years ago
Julian Lam
9a9f366d3b
feat: track login sessions for admin dashboard reporting
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
Julian Lam
cc275e1016
Revert "feat: newsletter opt-in/out in UCP, closes #21"
...
This reverts commit 3c7cd9a6c4
.
4 years ago
Julian Lam
3c7cd9a6c4
feat: newsletter opt-in/out in UCP, closes #21
4 years ago
Barış Soner Uşaklı
c61cc37bba
fix: typo
4 years ago
Barış Soner Uşaklı
cf4002bcc9
perf: cache base_url
4 years ago
Barış Soner Uşaklı
5ce2820799
perf: single call to get digest topics, dont send duplicate topics
4 years ago
Barış Soner Uşaklı
90d5c9da44
perf: single db call to add all uids
4 years ago
Barış Soner Uşaklı
0185ea1b4f
perf: make digests a little bit faster
...
and use batch.processArray
dont load data for users who have no email or have not confirmed their emails
4 years ago
Peter Jaszkowiak
cc9d6fd08b
chore: eslint max-len
4 years ago
Peter Jaszkowiak
5c2f0f0557
chore: eslint no-restricted-syntax
4 years ago
Peter Jaszkowiak
115d19e289
chore: eslint prefer-rest-params, prefer-spread
4 years ago
Peter Jaszkowiak
23f212a4c0
chore: eslint prefer-destructuring
4 years ago
Peter Jaszkowiak
62869bae3d
chore: eslint function-paren-newline
4 years ago
Peter Jaszkowiak
dab3b23575
chore: eslint no-var, vars-on-top
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
Peter Jaszkowiak
4ee0f1459d
chore: eslint import/newline-after-import
4 years ago
Barış Soner Uşaklı
47299ea587
Categories refactor ( #9257 )
...
* feat: wip categories pagination
* feat: add subCategoriesPerPage setting
* feat: add load more sub categories button to category page
* fix: openapi spec
* feat: show sub categories left on category page
hide button when no more categories left
* breaking: rename categories to allCategories on /search
categories contains the search results
* fix: spec
* refactor: remove cidsPerPage
* fix: tests
* feat: use component for subcategories
* fix: prevent negative subCategoriesLeft
* feat: new category filter/search WIP
* feat: remove categories from /tag
* fix: dont load all categories when showing move modal
* feat: allow adding custom categories to list
* breaking: dont load entire category tree on post queue
removed unused code
add hooks to filter/selector
add options to filter/selector
* feat: make selector modal work again
* feat: replace old search module
* fix: topic move selector
* feat: dont load all categories on create category modal
* fix: fix more categorySelectors
* feat: dont load entire category tree on group details page
* feat: dont load all categories on home page and user settings page
* feat: add pagination to /user/:userslug/categories
* fix: update schemas
* fix: more tests
* fix: test
* feat: flags page, dont return entire category tree
* fix: flag test
* feat: categories manage page
dont load all categories
allow changing root category
clear caches properly
* fix: spec
* feat: admins&mods page
dont load all categories
* fix: spec
* fix: dont load all children when opening dropdown
* fix: on search results dont return all children
* refactor: pass all options, rename options.cids to options.selectedCids
* fix : #9266
* fix: index 0
* fix: spec
* feat: #9265 , add setObjectBulk
* refactor: shoter updateOrder
* feat: selectors on categories/category
* fix: tests and search filter
* fix: category update test
* feat: pagination on acp categories page
show order in set order modal
* fix: allow drag&drop on pages > 1 in /admin/manage/categories
* fix: teasers for deep nested categories
fix sub category display on /category page
* fix: spec
* refactor: use eslint-disable-next-line
* refactor: shorter
4 years ago
gasoved
970bd06fd2
refactor: improvements
4 years ago
gasoved
53e0d4d2e0
feat: banned-users group
4 years ago
Barış Soner Uşaklı
f6cd2862bd
feat: #9232 , add profile picture into exported zip
4 years ago
Julian Lam
fb84c78544
chore: remove deprecated `User.emailConfirm` [breaking]
...
Use `User.email.confirmByCode` instead.
4 years ago