Commit graph

1372 commits

Author SHA1 Message Date
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
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
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
dakkar
7b507485b5 search-by-tags returns "home" notes - fixes #933
featured / trending tags count both "home" and "public" notes, so this
should do the same
2025-02-10 10:16:27 +00:00
Hazelnoot
1126c09669 make convertAttachment match file->attachment schema 2025-02-08 13:17:50 -05:00
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
c889948f95
feat: Add generation of keys to admin page 2025-02-07 06:00:49 +01: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
b92591e2ed allow ap/show to follow cross-domain redirects 2025-02-05 14:21:38 -05:00
Hazelnoot
788dc69d11 use leaky bucket rate limit for ap/show 2025-02-05 14:21:38 -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