Commit Graph

1263 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
beb3f8ff94 Merge branch 'master' into develop 2026-01-20 20:15:07 -05:00
Barış Soner Uşaklı
07d2c9463e fix: remove bidi chars from displayname
fixes chat teasers and probably every other place where display name is shown
2026-01-20 18:42:31 -05:00
Barış Soner Uşaklı
6b3ec63621 refactor: add guards against bad data & infi loops 2026-01-20 12:05:52 -05:00
Barış Soner Uşaklı
37675689f8 refactor: move username check to createOrQueue 2026-01-19 22:43:39 -05:00
Barış Soner Uşaklı
7e27da61ab refactor: checkUsername function https://github.com/NodeBB/NodeBB/issues/10864 2026-01-19 22:26:09 -05:00
Barış Uşaklı
e2e1744824 User create / registeration queue refactor (#13905)
* feat: add options parameter to User.create

add emailVerification: ('send'|'verify'|'skip') param to User.create to control email verification

add a new method User.createOrQueue(). store options that will be passed to User.create() when registration is accepted in _opts

If there is no password passed to registration queue(SSO register) don't store hashedPassword

removed the isFirstUser hack in user.create, when creating the admin user in install.js passing `emailVerification: 'verify'` to immediately verify the email, same with all the hacks in tests

auth: if an SSO plugin sends back an info object, redirect to root and display the message

* refactor: make function private

* refactor: destruct return

* test: fix flag test

* test: group tests

* feat: show ssoIcon if available in register queue

* add icon/title
2026-01-19 18:40:48 -05:00
Barış Uşaklı
7b793527f9 Change owner rest route (#13881)
* fix: dont use sass-embedded on freebsd, #13867

* fix: #13715, dont reduce hardcap if usersPerPage is < 50

* fix: closes #13872, use translator.compile for notification text

so commas don't cause issues

* fix: remove bidiControls from notification.bodyShort

* refactor: move change owner call to rest api

deprecate socket method

* fix spec

* test: one more fix

* test: add 404

* test: fix tests :rage1:

* test: update test to use new method
2026-01-11 14:38:14 -05:00
Julian Lam
3ede64d8a1 refactor: move all methods in src/api/activitypub.js to src/activitypub.out.js 2025-10-22 14:41:56 -04:00
Barış Soner Uşaklı
312df52393 fix: only process unique slugs 2025-08-25 11:18:04 -04:00
Barış Soner Uşaklı
5a5ca8a5fb fix: closes #13526, dont send multiple emails when user is invited 2025-07-02 17:38:35 -04:00
Barış Soner Uşaklı
6c3e2a8e22 refactor: create date once per digest.send 2025-05-15 09:42:55 -04:00
Barış Soner Uşaklı
3faae559a8 Merge branch 'master' of https://github.com/NodeBB/NodeBB 2025-05-15 09:38:49 -04:00
Barış Soner Uşaklı
3d96afb2d1 feat: use local date string for digest subject
closes #13420
2025-05-15 09:38:43 -04:00
Julian Lam
7e25946cd7 breaking: removal of filter:user.verify.code 2025-05-06 13:38:42 -04:00
Julian Lam
28b7a20339 lint: yup. 2025-04-29 15:13:22 -04:00
Julian Lam
f02d96614a fix: remote bare hash for remote users on prune as well 2025-04-29 10:28:18 -04:00
Julian Lam
4d1d7c3dca fix: remote categories should not show up in a user's follow lists 2025-04-29 10:28:18 -04:00
Barış Soner Uşaklı
97a232e9d5 dont make db call if ap disabled 2025-04-29 10:28:17 -04:00
Barış Soner Uşaklı
74661381d8 refactor: use promise.all 2025-04-29 10:28:17 -04:00
Barış Soner Uşaklı
c1b7196429 fix: spread fail, @julianlam
add ap check
2025-04-29 10:28:17 -04:00
Julian Lam
6e374200e5 send ap follow/undo-follow if remote category watch state changes 2025-04-29 10:28:17 -04:00
Julian Lam
9c1d5cd36e feat: #13255, deliver asserted topics to remote category followers 2025-04-29 10:28:17 -04:00
Julian Lam
7ccd6b73ae fix: delete shares zset on account deletion 2025-04-29 10:28:17 -04:00
Julian Lam
f483e883a7 feat: asserted topics and posts to remote categories will notify and add to unread based on remote category watch state 2025-04-29 10:28:17 -04:00
Barış Soner Uşaklı
a5afad27e5 feat: chat allow/deny list, closes #13359 2025-04-25 11:54:11 -04:00
Barış Soner Uşaklı
73c8dbfe00 Merge branch 'master' into develop 2025-04-12 14:16:58 -04:00
Barış Soner Uşaklı
d59a5728df lint: fix missing comma 2025-04-11 19:58:48 -04:00
Barış Soner Uşaklı
46ed56cf96 refactor: use sortedSetsCard 2025-04-11 19:51:18 -04:00
Barış Soner Uşaklı
3ad6ee075b Thumb uploads/post uploads normalization (#13300)
* testing thumn/post upload refactor

* fix: isOrphan check

* lint: fix md5

* test: fix upload test

* user

* fix: upgrade script

* refactor: long line

* lint: lint

* test: fix tests

* Squashed commit of the following:

commit cd70e6c610
Author: Barış Soner Uşaklı <barisusakli@gmail.com>
Date:   Fri Apr 4 09:24:54 2025 -0400

    fix: req.body can be undefined

* refactor: show data on test fail

* test: logs

* test: change test

* make sure timestamps are different
2025-04-04 10:45:05 -04:00
Barış Soner Uşaklı
6813664120 feat: testing eslint9 (#13266)
* feat: testing eslint9

* fix: restore original functionality
2025-03-22 11:21:49 -04:00
Julian Lam
0e1006fb3b test: fix remoteUrl property generation, tests for topic moving 2025-03-11 14:19:08 -04:00
Julian Lam
537880d2e8 test: fix actor tests 2025-03-11 13:27:37 -04:00
Barış Soner Uşaklı
1cabcc45f3 Merge branch 'master' into develop 2025-03-08 00:13:11 -05:00
Julian Lam
78c9239b22 fix: expose remote url in user object 2025-03-07 13:27:10 -05:00
Barış Soner Uşaklı
c83f91bd12 refactor: dont generate UUID if no email 2025-03-07 10:23:55 -05:00
Barış Soner Uşaklı
84d3fe7969 refactor: show warning if there is no email for validation 2025-03-07 10:21:59 -05:00
Barış Soner Uşaklı
8dbd50d452 fix: closes #13219, only delete local user folder 2025-02-28 14:37:03 -05:00
Barış Soner Uşaklı
349084d8f9 refactor: use sortedSetRemoveBulk 2025-02-25 10:33:06 -05:00
Barış Soner Uşaklı
53a2be9def refactor: don't make db request if there is no code 2025-02-25 10:27:38 -05:00
Barış Soner Uşaklı
07957e8243 fix: don't send validation email for pending emails 2025-02-24 12:40:25 -05:00
Barış Soner Uşaklı
e85662a536 fix: getUserField so that it always returns null
if field doesn't exist
user.getUserField('foo', 'bar') returned undefined vs user.getUserField('1', 'bar') which returned null
2025-02-11 13:28:25 -05:00
Barış Soner Uşaklı
be62ae24ad feat: allow selecting empty for custom selects
closes #13101
2025-01-30 10:22:45 -05:00
Julian Lam
ddb6e0f32b fix: #13087, disallow following cid -1 2025-01-29 12:44:42 -05:00
Barış Soner Uşaklı
2b50a74f5e Merge branch 'master' into develop 2025-01-08 09:45:52 -05:00
Barış Soner Uşaklı
ae2bd5ab41 test: custom fields tests
add missing setReputation test
2025-01-07 17:35:42 -05:00
Julian Lam
2851e56bdc feat: pending follows and logic for remote users, #12938 2024-12-11 13:27:34 -05:00
Julian Lam
2ab72ada3f Merge remote-tracking branch 'origin/develop' into activitypub 2024-12-11 10:12:33 -05:00
Barış Soner Uşaklı
fe811537e9 refactor: remove "password" in comments 2024-12-09 14:40:49 -05:00
Julian Lam
c0e58b03c5 Merge remote-tracking branch 'origin/develop' into activitypub 2024-11-26 11:34:18 -05:00
Barış Soner Uşaklı
6ebff2e1c6 refactor: shorter check for showfullname 2024-11-26 09:17:51 -05:00