1
0
Commit Graph

1718 Commits

Author SHA1 Message Date
Hazelnoot 1e43162ba7 improve mastodon note conversion and use access checks in more places (resolves #509) 2025-02-08 13:17:50 -05:00
Hazelnoot 3550ce27d5 hide restricted edit history from mastodon api (resolves #811) 2025-02-08 13:17:50 -05:00
Hazelnoot bd95e8a555 fix relationship data for Mastodon API (resolves #714) 2025-02-08 13:17:50 -05:00
Hazelnoot 5a1d1394d4 add memo and isInstanceMuted to UserRelation API entity 2025-02-08 13:17:47 -05:00
Hazelnoot bbfba495df remove un-needed relationshipModel static data 2025-02-08 13:17:34 -05:00
Hazelnoot c38f04fe38 fix empty masto-api responses for several endpoints (resolves #721 and #707) 2025-02-08 13:17:34 -05:00
Hazelnoot 16f483d273 cleanup Mastodon API (resolves #804 and #865, partially resolves #492)
* Fix TS errors and warnings
* Fix ESLint errors and warnings
* Fix property typos in various places
* Fix property data conversion
* Add missing entity properties
* Normalize logging and reduce spam
* Check for missing request parameters
* Allow mastodon API to work with local debugging
* Safer error handling
* Fix quote-post detection
2025-02-08 13:17:34 -05:00
Hazelnoot 50a3e55be4 merge: Rework rate limit factors and add caching (resolves #884) (!884)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/884

Closes #884

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-08 15:05:01 +00:00
Marie d6c4b728df merge: Add "follow back" button on follow-related notifications (resolves #895) (!873)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/873

Closes #895

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-07 03:50:12 +00:00
Marie d629b882b0 merge: Allow users to set a default content warning for their new posts (resolves #901) (!881)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/881

Closes #901

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-07 03:47:20 +00:00
Marie 2434922f7d merge: Increase the rate limit for /api/i endpoint (!882)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/882

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-07 03:44:31 +00:00
Marie e401724835 merge: Increase rate limit on federation/update-remote-user endpoint (!880)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/880

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-02-07 03:41:00 +00:00
Hazelnoot c8f8a61a00 add MiUserProfile.defaultCWPriority property and API 2025-02-05 14:22:50 -05:00
Hazelnoot 74407bc8ee add MiUserProfile.defaultCW property and API 2025-02-05 14:22:50 -05:00
Hazelnoot 1bedf954f2 increase rate limit for users/show endpoint 2025-02-05 14:21:12 -05:00
Hazelnoot b171c1c440 move imports to fix git diff in ActivityPubServerService.ts 2025-02-05 11:20:26 -05:00
Hazelnoot f92fb3bb8c move SkRateLimiterService to correct directory 2025-02-05 11:20:26 -05:00
Hazelnoot d4311ea041 document new rate limit factor calculations 2025-02-05 11:20:25 -05:00
Hazelnoot 09669d72e7 lookup and cache rate limit factors directly within SkRateLimiterService 2025-02-05 11:20:25 -05:00
Hazelnoot 402933004a increase sign-in rate limit 2025-02-05 11:20:25 -05:00
Hazelnoot 8a087e75a5 merge: Improve language detection. (!871)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/871

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-02-05 13:49:18 +00:00
Hazelnoot bd716ed837 increase the rate limit for /api/i endpoint, preventing some 429 errors if multiple tabs reload simultaneously 2025-02-01 23:56:41 -05:00
Hazelnoot 83f2d93d30 increase rate limit on federation/update-remote-user 2025-02-01 18:53:32 -05:00
Kinetix 4d91baaa13 Adjust as per suggestions in !877 2025-01-31 10:22:13 -08:00
Kinetix 993532bc1f Adding robots.txt override via admin control panel
This is a requested low priority feature in #418 - I created the changes
to follow similarly to how the Instance Description is handled.
2025-01-28 15:57:45 -08:00
Hazelnoot 8bf01d9731 merge: Improve my previous emoji endpoints patch. (!869)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/869

Closes #893

Approved-by: Marie <github@yuugi.dev>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-01-26 15:17:32 +00:00
piuvas 1080f19e99 generalize current language so we match more broadly on fallback 2025-01-24 18:37:18 -03:00
piuvas 716f203171 requested changes 2025-01-23 22:33:19 -03:00
piuvas 62964c45f8 cleanup for linter to be happy 2025-01-20 17:26:39 -03:00
piuvas b92a325539 use addOrderBy as not to override orderBy 2025-01-20 17:18:56 -03:00
dakkar b5d2aea2ac merge: Clone note when adding myReaction to streamed notes. (!854)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/854

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-01-18 16:44:56 +00:00
piuvas 3fc377839c comment :3 2025-01-12 21:11:36 -03:00
dakkar 3ceac893c9 attribute invite codes to admins/moderators
when a regular user (who has the appropriate permissions) creates an
invite, we record that user's id in the `createdById` column

but when an admin/mod creates an invite via the control panel, we
didn't

now we do
2025-01-12 12:33:08 +00:00
piuvas f1d9bb2cf1 requested changes 2025-01-10 22:10:18 -03:00
piuvas a3fc9a1085 comment code 2025-01-08 13:10:20 -03:00
piuvas e76e6cd08f small refactor 2025-01-08 12:58:57 -03:00
piuvas 5fc9c1c8cd shallow clone 2025-01-08 12:51:46 -03:00
dakkar b8e361e03c merge: fix: populate myreaction on replies for streams. (!839)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/839

Closes #340

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
Approved-by: dakkar <dakkar@thenautilus.net>
2025-01-04 09:37:01 +00:00
piuvas 2c742d6e82 requested change. 2024-12-26 14:49:22 -03:00
piuvas 8f96b50b00 improvement 2024-12-26 12:27:00 -03:00
piuvas 64abef8be9 turn task into a function 2024-12-25 16:41:40 -03:00
piuvas 94c3a71e49 improvements. 2024-12-23 20:42:21 -03:00
piuvas 83460279c0 populate myreaction on replies for streams. 2024-12-23 10:50:31 -03:00
bunnybeam 9160ede4d5 replace RE2 with RegExp for regex word mute validation 2024-12-21 01:34:56 +00:00
Marie 16822639e6 merge: enforce restrictions for user's rss feed (!822)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/822

Approved-by: Charlotte <timo.herngreen@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2024-12-17 21:46:10 +00:00
dakkar f4537e7092 better name, and other tweaks 2024-12-17 16:45:56 +00:00
dakkar 799cc0d098 pick lints 2024-12-17 10:06:30 +00:00
dakkar 46432161b8 enforce restrictions for user's rss feed
if `requireSigninToViewContents` in on, no notes are included in the
feed

notes covered by `makeNotesFollowersOnlyBefore` and
`makeNotesHiddenBefore` are skipped
2024-12-17 09:47:32 +00:00
Marie e50ff9db6a upd: make schedule time work cross timezones 2024-12-15 22:41:16 +01:00
dakkar e2352839e4 merge: upstream changes for 2024.11 (!742)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/742

Closes #645 and #646

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
2024-12-15 17:27:12 +00:00