Commit graph

29732 commits

Author SHA1 Message Date
dakkar
029f67b7e5 fix time zone for CustomEmojiService test
otherwise, the timestamps that the test uses for queries are
interpreted as UTC (because they have a TZ in the string), but the
truncated date is interpreted in the session timezone, which defaults
to the server timezone, which can be anything

thanks to @fEmber for noticing
2025-02-18 20:57:55 +00:00
Hazelnoot
c28b27b57f merge: Optionally log remote ActivityPub objects to database (!833)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/833

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-18 19:51:13 +00:00
Marie
3dfd018305 merge: Fix error message when a peertube object is rejected for bad ID / URL (!900)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/900

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-17 19:47:36 +00:00
Marie
0e01c94efc merge: Increase rate limit on server-info to avoid errors and blank graphs (!903)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/903

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-17 19:46:31 +00:00
Marie
f95c234139 merge: Prevent browser console spam when media fetch returns an error message or JSON payload (!904)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/904

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-17 19:46:15 +00:00
Marie
25da35eab2 merge: relax validation of Announce / renote timestamps (resolves #799) (!905)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/905

Closes #799

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-17 19:46:11 +00:00
Marie
e102a9894a merge: Support Peertube preview thumbnails (resolves #513) (!906)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/906

Closes #513

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-17 19:46:08 +00:00
Hazelnoot
39321d13cc prevent browser console spam when media fetch returns an error message or JSON payload 2025-02-16 19:27:29 -05:00
Hazelnoot
f183df3044 fix error message when a peertube object is reject for bad ID / URL 2025-02-16 19:27:06 -05:00
Hazelnoot
17ec2df3e1 increase rate limit on server-info to avoid errors and blank graphs 2025-02-16 19:26:29 -05:00
Hazelnoot
9de5ecae51 delete fetch logs when a note or user is deleted 2025-02-16 19:25:42 -05:00
Hazelnoot
dbaeb7f2ac fix unit tests using mock-resolver 2025-02-16 19:25:25 -05:00
Hazelnoot
71be39ecc8 add missing await in ApLogCleanupService 2025-02-16 19:25:24 -05:00
Hazelnoot
4858276465 don't log slow activities, as this is known to happen under regular circumstances 2025-02-16 19:25:24 -05:00
Hazelnoot
81944b3bdf implement AP fetch logs 2025-02-16 19:25:22 -05:00
Hazelnoot
cc2edae7ab rename activity_log and activity_context to ap_inbox_log and ap_context 2025-02-16 19:25:04 -05:00
Hazelnoot
0979392925 make activity_log.duration nullable 2025-02-16 19:25:04 -05:00
Hazelnoot
15148b7875 fix activity duration calculation
* Ensure that timing is recorded even if an exception is thrown.
* Round to the correct decimal place.
2025-02-16 19:25:04 -05:00
Hazelnoot
871c63b48b print warning when activity processing exceeds 10 seonds 2025-02-16 19:25:04 -05:00
Hazelnoot
e35e92beb9 log inbound activity duration 2025-02-16 19:25:04 -05:00
Hazelnoot
07cd01ec34 add missing constraint names to SkActivityLog and SkActivityContext 2025-02-16 19:25:04 -05:00
Hazelnoot
561f46b8d4 add logging for ActivityLogCleanupService 2025-02-16 19:25:04 -05:00
Hazelnoot
b65b4ecadc add inbound activity logger for debugging 2025-02-16 19:25:02 -05:00
Hazelnoot
3ab310e472 relax validation of Announce(Note) timestamps 2025-02-16 19:14:58 -05:00
Hazelnoot
6d459cdf80 Update ApImageService.ts 2025-02-16 19:14:24 -05:00
Hazelnoot
447534d094 support Peertube preview thumbnails 2025-02-16 19:14:24 -05:00
Hazelnoot
2d7918a9b7 merge: Merge upstream 2025.2.0 (!886)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/886

Approved-by: Marie <github@yuugi.dev>
Approved-by: Amber Null <puppygirlhornyposting@gmail.com>
2025-02-16 21:42:35 +00:00
dakkar
e5c41444e6 merge: fill myReaction in more cases - may fix #944 (!907)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/907

Closes #944

Approved-by: Charlotte <timo.herngreen@gmail.com>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-02-16 13:39:27 +00:00
dakkar
949664147e fill myReaction in more cases - may fix !944
* first of all, fetch from the buffer all the notes we may
	need (including replied-to ones)
* then, distinguish between "we know there's no myReaction" and "we
  don't know if there's any myReaction"
* finally, look at both a note and the note it's replying to
2025-02-16 11:41:32 +00:00
Marie
7abd4fe44e merge: Enhance: Increase nodejs memory limit for docker (!899)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/899

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-02-16 01:08:55 +00:00
Hazelnoot
ec29e12c97 Merge branch 'develop' into merge/2024-02-03
# Conflicts:
#	packages/backend/src/core/SearchService.ts
2025-02-15 11:30:26 -05:00
Daniel Ares
959b6ad46d Increase nodejs memory limit for docker 2025-02-15 13:19:06 +00:00
Marie
dc6f13728c merge: Fix timeout when searching notes by host without meilisearch (resolves #940) (!896)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/896

Closes #940

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-15 11:00:33 +00:00
Hazelnoot
c67d985254 Merge branch 'develop' into merge/2024-02-03
# Conflicts:
#	packages/backend/src/core/SearchService.ts
#	packages/misskey-js/src/autogen/types.ts
2025-02-14 23:48:36 -05:00
Hazelnoot
493000290b fix performance of SQL LIKE note search 2025-02-14 20:16:39 -05:00
Marie
6b6ee81660 merge: Fix error when searching without a specified host (!898)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/898

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-14 10:38:28 +00:00
Hazelnoot
c8bb7b9816 fix error when searching without a specified host 2025-02-13 17:40:32 -05:00
Hazelnoot
667262dcfb Merge branch 'develop' into merge/2024-02-03
# Conflicts:
#	locales/index.d.ts
#	packages/backend/src/core/SearchService.ts
#	packages/frontend/src/pages/search.note.vue
#	packages/misskey-js/src/autogen/types.ts
#	sharkey-locales/en-US.yml
2025-02-13 17:04:50 -05:00
Hazelnoot
a95bfb7241 search notes with denormalized userHost field 2025-02-13 16:56:32 -05:00
dakkar
36545aea8b merge: Add new note search file types (module, flash), optimize search query, and add translation entries for UI dropdown (resolves #920) (!897)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/897

Closes #920

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-13 17:22:33 +00:00
Hazelnoot
ed981a6970 add new note search file types (module, flash) and optimize file type query 2025-02-13 09:28:46 -05:00
Hazelnoot
fb058410f6 fix pgroona note.text query 2025-02-12 11:01:26 -05:00
Hazelnoot
feb80ee992 Merge branch 'develop' into merge/2024-02-03 2025-02-11 10:52:52 -05:00
Hazelnoot
363111f5de Merge branch 'develop' into merge/2024-02-03
# Conflicts:
#	locales/index.d.ts
#	packages/backend/src/server/api/EndpointsModule.ts
#	packages/backend/src/server/api/endpoints.ts
#	packages/misskey-js/src/autogen/endpoint.ts
#	sharkey-locales/en-US.yml
2025-02-10 23:34:52 -05:00
Hazelnoot
5276d6024d merge: Cleanup and bulk fixes to Mastodon API (resolves #495, #509, #707, #714, #721, #804, #811, #865, and partially #492) (!879)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/879

Closes #495, #509, #707, #714, #721, #804, #811, #865, and #492

Approved-by: Marie <github@yuugi.dev>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-02-10 16:28:32 +00:00
Hazelnoot
2f84d151f5 merge: Allow user-initiated object lookups (/ap/show endpoint) to follow cross-domain redirects (resolves #820) (!878)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/878

Closes #820

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-10 16:22:20 +00:00
Marie
1da9245ca5 merge: hide note preview if it's already quoted - fixes #888 (!894)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/894

Closes #888

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-02-10 16:20:21 +00:00
Marie
c1d609bf00 merge: make the listen address configurable - fixes #927 (!892)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/892

Closes #927

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-02-10 16:19:05 +00:00
Marie
816ce293fb merge: search-by-tags returns "home" notes - fixes #933 (!891)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/891

Closes #933

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-02-10 16:18:06 +00:00
Marie
58ad9b13ab merge: add missing translations for admin perms - fixes #918 (!893)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/893

Closes #918

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-02-10 16:18:05 +00:00