Commit graph

29828 commits

Author SHA1 Message Date
Hazelnoot
c54b6bf55d append mandatory CW in Update(Note) activities 2025-02-16 19:20:41 -05:00
Hazelnoot
583f55bc5a fix type error in WebhookTestService.ts 2025-02-16 19:20:41 -05:00
Hazelnoot
c32bde739e add translation entry for "write:admin:cw-user" 2025-02-16 19:20:41 -05:00
Hazelnoot
3d23cdc0e4 append mandatory CW in note previews 2025-02-16 19:20:41 -05:00
Hazelnoot
905b637648 append mandatory CW in all note views (Mk/Sk/Em + basic/Detailed/Simple/Sub) 2025-02-16 19:20:41 -05:00
Hazelnoot
c5933f369e move mandatoryCW from admin-user to PackedUserLite (public field) 2025-02-16 19:20:41 -05:00
Hazelnoot
6c2034a373 append default CW when rendering AP Note objects 2025-02-16 19:20:41 -05:00
Hazelnoot
563e32316f factor out common append-content-warning routine for use in both frontend and backend 2025-02-16 19:20:41 -05:00
Hazelnoot
7814c6e54e remove mandatory CW logic from NoteCreateService and NoteEditService 2025-02-16 19:20:41 -05:00
Hazelnoot
d5e9be318b prevent duplicate ModLog entries when changing mod note or force CW 2025-02-16 19:20:41 -05:00
Hazelnoot
b256ac32d0 don't duplicate mandatory CWs 2025-02-16 19:20:41 -05:00
Hazelnoot
568d82a974 record ModLog entry when setting a user's content warning 2025-02-16 19:20:41 -05:00
Hazelnoot
4f79f85703 fix TypeScript errors in modlog.MogLog.vue 2025-02-16 19:20:41 -05:00
Hazelnoot
935a62f5e5 fix typescript errors in WebhookTestService.ts 2025-02-16 19:20:41 -05:00
Hazelnoot
ea89348b62 add user-level "force content warning" moderation feature 2025-02-16 19:20:37 -05:00
Hazelnoot
2bf8648ebc refresh cache when marking a user as NSFW 2025-02-16 19:15:23 -05:00
Hazelnoot
feeaf26641 fix lint errors in NoteCreateService & NoteEditService 2025-02-16 19:15:22 -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
Marie
61e5eadffa merge: prevent a ReferenceError (!895)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/895

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2025-02-10 16:18:00 +00:00
dakkar
b7f06f2877 prevent a ReferenceError
before, we got:

> ReferenceError: can't access lexical declaration 'followRequestDone'
> before initialization

(of course in non-dev mode, `followRequestDone` had a different name)
2025-02-10 11:59:38 +00:00
dakkar
f66e534f26 fix the defaults 2025-02-10 11:54:47 +00:00
dakkar
c6eb1ffde3 hide note preview if it's already quoted - fixes #888
I do not particularly _love_ this solution, but it is simple and
effective

I can't find another reliable way to determine if a link goes to a
local note of the given id, apart from fetching the link
2025-02-10 11:42:10 +00:00
dakkar
43d4835c2f add missing translations for admin perms - fixes #918 2025-02-10 10:48:37 +00:00
Marie
670b1171fb merge: Add ability to generate vapid keys on frontend (!888)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/888

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-02-10 10:47:42 +00:00