1
0
Commit Graph

1363 Commits

Author SHA1 Message Date
Hazelnoot daf715578e fix mastodon media attachment conversion (resolves #495) 2025-02-08 13:17:50 -05:00
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
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 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 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 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 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 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
Hazelnoot fd0ecb22cf merge: Fix rate limits under multi-node environments (!809)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/809

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2024-12-15 16:53:48 +00:00
dakkar 9b1fc96908 fix passing rate limiting info via ApiError 2024-12-13 16:18:10 +00:00
dakkar 0c1dd73341 on 429, retry fetchAccount instead of failing
when switching between accounts, with many tabs open (10 seem to be
enough), they all hit the endpoint at the same time, and some get rate
limited.

treating a 429 as a fatal error confuses the frontend, which ends up
logging the user out of all their accounts.

this code makes the frontend retry, after waiting the appropriate
amount of time.

seems to work fine in my testing.
2024-12-13 16:18:10 +00:00
dakkar e9f68ab2b0 actually publish profile updates with changes to new mk fields
I had forgotten to check these
2024-12-12 17:40:22 +00:00
dakkar b266a5f9f6 Merge branch 'develop' into feature/2024.10 2024-12-12 17:38:29 +00:00
Hazelnoot 1c65f23445 safer typings for userNeedsPublishing and profileNeedsPublishing 2024-12-12 08:13:44 -05:00
Hazelnoot 02b600c9da federate profile when changing enableRss value 2024-12-12 08:12:44 -05:00
Hazelnoot fe37aa2ce8 Add "enable RSS" user privacy toggle 2024-12-12 08:11:55 -05:00