Commit Graph

15455 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
5ff5971465 Merge branch 'master' into develop 2026-03-10 11:01:14 -04:00
Barış Soner Uşaklı
f6f51f83c4 perf: make a single round trip for set(s)Remove
use bulkWrite
2026-03-10 11:01:01 -04:00
Barış Soner Uşaklı
92fcdd09ca fix: closes #14074, only return url & name
from uploads, add tests to post uploads and thumb uploads to check only name & url is returned
2026-03-10 10:46:17 -04:00
Barış Soner Uşaklı
a391d01d30 fix: closes #14073, fix teasers from child categories
add a test
2026-03-10 09:49:23 -04:00
Julian Lam
6b3b3e7ee3 fix: syntax error on undefined value 2026-03-09 21:53:56 -04:00
Barış Soner Uşaklı
a3821ff7f4 handle extensions 2026-03-09 21:33:39 -04:00
Barış Soner Uşaklı
c718cdbb55 handle extensions 2026-03-09 21:29:36 -04:00
Barış Soner Uşaklı
38b347be9e Merge branch 'master' into develop 2026-03-09 21:24:34 -04:00
Barış Soner Uşaklı
7d4cbf8667 dont log uuids in 404 2026-03-09 21:24:27 -04:00
Barış Soner Uşaklı
4af031398c refactor: get rid of pop 2026-03-09 19:42:08 -04:00
Barış Soner Uşaklı
c4e9e1cbf0 perf: cache groups:createtime
when deleting users, each user.delete() was loading groups:createtime
2026-03-09 19:34:25 -04:00
Barış Soner Uşaklı
bcbb7bc444 perf: make a single round trip for set(s)Remove
use bulkWrite
2026-03-09 18:33:24 -04:00
Barış Soner Uşaklı
380d989570 perf: cache groups:createtime
when deleting users, each user.delete() was loading groups:createtime
2026-03-09 17:30:20 -04:00
Julian Lam
40b8544f10 fix: filter out image attachments from remote data if they are already embedded in content 2026-03-09 14:34:42 -04:00
Julian Lam
c2d190e107 fix: update thumbs loading logic to always include post attachments as part of thumbs (prior: was controlled by thumbsOnly flag orshowPostUploadsAsThumbnail setting) 2026-03-09 14:34:42 -04:00
Julian Lam
f19761682a fix: #14072, world to call thumbs with thumbsOnly filter 2026-03-09 14:34:42 -04:00
Barış Soner Uşaklı
54684be2ea Merge branch 'master' into develop 2026-03-09 13:55:10 -04:00
Barış Soner Uşaklı
4fa44da667 get rid of verbose logs 2026-03-09 13:53:13 -04:00
Barış Soner Uşaklı
8ec1ccccfe fix: promises in groups.leave
speed up user.delete

user.delete calls `groups.leaveAllGroups` which calls rejectMembership with 500+ groups. This function then tries to remove the user from `group:<group>:pending` and `group:<group>:invited` sets so a total for 1k sets. You can't be invited or request membership to privilege groups so filter the groups before sending to rejectMembership

clearGroupTitleIfSet function tries to remove the group title from the user. It was only skipping privilege groups and registered-users, but unverified-users & verified users weren't added to the check

Messaging.leaveRooms, make a single call to isUserInRoom and passing an array of roomIds

In user.delete, check utils.isNumber(uid) once.

Call deleteVotes/deleteChats/revokeAllSessions in Promise.all

If user is local dont call activitypub.actors.remove(), this saves a db call to `await db.isSortedSetMember('usersRemote:lastCrawled', id);`
2026-03-09 13:47:26 -04:00
Barış Soner Uşaklı
f826e62933 fix: promises in groups.leave
speed up user.delete

user.delete calls `groups.leaveAllGroups` which calls rejectMembership with 500+ groups. This function then tries to remove the user from `group:<group>:pending` and `group:<group>:invited` sets so a total for 1k sets. You can't be invited or request membership to privilege groups so filter the groups before sending to rejectMembership

clearGroupTitleIfSet function tries to remove the group title from the user. It was only skipping privilege groups and registered-users, but unverified-users & verified users weren't added to the check

Messaging.leaveRooms, make a single call to isUserInRoom and passing an array of roomIds

In user.delete, check utils.isNumber(uid) once.

Call deleteVotes/deleteChats/revokeAllSessions in Promise.all

If user is local dont call activitypub.actors.remove(), this saves a db call to `await db.isSortedSetMember('usersRemote:lastCrawled', id);`
2026-03-09 13:29:12 -04:00
Julian Lam
d29f1fbdf8 fix: #14071, duplicate items loaded via IS on /world 2026-03-09 12:47:08 -04:00
Julian Lam
5a7316b1b2 fix: #14043, cold-load redirect should only affect guests 2026-03-09 10:36:15 -04:00
Barış Soner Uşaklı
2afecd9c32 Merge branch 'master' into develop 2026-03-08 20:13:21 -04:00
Barış Soner Uşaklı
02b064923b feat: add mastodon share, closes #14069 2026-03-08 20:12:34 -04:00
Barış Soner Uşaklı
1b8c3f5a47 whitespace 2026-03-08 20:03:55 -04:00
Barış Uşaklı
3c0a654012 feat: show cronjobs in acp (#14068)
* feat: show cronjobs in acp

add a wrapper for cronjobs and display in acp

* test: add running to spec

* test: fix running, simplify calls

* test: prevent crash on stopJob
2026-03-06 20:42:38 -05:00
Barış Soner Uşaklı
4aea3a8055 refactor: switch to cursor 2026-03-05 20:54:03 -05:00
Barış Soner Uşaklı
1c7daf0db9 refactor: switch to cursor 2026-03-05 20:31:36 -05:00
Barış Soner Uşaklı
b88072a3ec Merge branch 'master' into develop 2026-03-05 20:10:02 -05:00
Barış Soner Uşaklı
75f52cadaf refactor: update upgrade script to scan for missing tid:<tid>:recipients 2026-03-05 20:09:55 -05:00
Barış Soner Uşaklı
4534fad833 thumb fix 2026-03-05 19:59:46 -05:00
Barış Uşaklı
5c271e8958 scan. glob to regex (#14063)
* scan. glob to regex

* lint
2026-03-05 16:01:19 -05:00
Barış Uşaklı
7d50baecf0 scan. glob to regex (#14063)
* scan. glob to regex

* lint
2026-03-05 16:01:03 -05:00
Barış Soner Uşaklı
5d1a8a11fd Merge branch 'master' into develop 2026-03-05 14:02:04 -05:00
Barış Soner Uşaklı
0be4081049 fix: #14062 recipients is normal set 2026-03-05 14:01:57 -05:00
Barış Soner Uşaklı
d35c74558f fix: add missing db call 2026-03-05 13:52:02 -05:00
Barış Soner Uşaklı
4d1d1c8636 fix: add missing db call 2026-03-05 13:51:50 -05:00
Barış Soner Uşaklı
69fe4fcb82 Merge branch 'master' into develop 2026-03-05 13:45:34 -05:00
Barış Soner Uşaklı
1fc3edf764 fix: closes #14062
on topic purge remove them from uid:<uid>:inboxes
upgrade script to cleanup inboxes
2026-03-05 13:44:10 -05:00
Barış Soner Uşaklı
0785f3d17b Merge branch 'master' into develop 2026-03-05 11:37:28 -05:00
Barış Soner Uşaklı
a4dbbfeae4 lint 2026-03-05 09:05:41 -05:00
Julian Lam
b8ef027cac fix: #14046, sneak in a mention to the community in mocked replies 2026-03-04 14:22:46 -05:00
Julian Lam
cc733631d2 fix: world page 'see more' bugs 2026-03-04 13:08:22 -05:00
Julian Lam
2f5fccdb1a fix: #13239, unescape custom user field values 2026-03-04 11:53:55 -05:00
Julian Lam
9e69b9ad2d fix: #13239, unescape custom user field values 2026-03-04 11:53:29 -05:00
Julian Lam
8a371d23ca fix: restore preview as it is now supported by BridyFed
https://bsky.brid.gy/internal/snarfed.org/2026-03-03_56661
2026-03-04 10:40:26 -05:00
Barış Soner Uşaklı
4f07b345bf fix: text-break on outgoing link 2026-03-03 12:55:55 -05:00
Barış Soner Uşaklı
88b91c20d9 refactor: move resolve flags and activitypub.out.remove.context
after topic deletion
2026-03-03 12:54:14 -05:00
Julian Lam
2b12f8b578 feat: redirect cold requests to remote resources to their canonical source, #14043 2026-03-03 12:25:47 -05:00
Julian Lam
43f2951a5b fix: #14042, adopt plugin-feed's show-more/less logic/scss 2026-03-03 11:59:56 -05:00