Commit graph

640 commits

Author SHA1 Message Date
Michael 4b695e361c Automatically close the registration when the admin is inactive 2024-03-22 04:19:40 +00:00
Michael 30f31828ae Fixes API-Issues #13985 and #13986 2024-03-12 03:12:36 +00:00
Michael 7471513269 Issue 13940: handle posts that can't be found in contexts 2024-03-03 18:32:26 +00:00
Michael Vogel d95c9d28a8
Issue 13922: "voted" must not be null (#13923) 2024-02-20 07:09:55 +01:00
Hypolite Petovan 623a5be8a6 Clarify condition on offset in Mastodon\Search->searchStatuses 2024-02-18 18:48:37 -05:00
Hypolite Petovan d1cd9a016e Move Api\Mastodon\Instance\Extended to ExtendedDescription
- Add reference to Mastodon documentation
2024-02-18 18:47:59 -05:00
Michael Vogel 7d5d3b3c29
Issue 13293: Endpoint /api/v1/accounts/lookup implemented (#13917) 2024-02-18 20:17:06 +01:00
Michael Vogel 6384265cbd
Issue #13823: Fix "Mutes" endpoint (#13916) 2024-02-18 20:07:51 +01:00
Michael Vogel c6160a1c38
Fix API issues #13887, #13886, #13863, #13809, #13897 (#13911) 2024-02-18 15:52:30 +01:00
Michael Vogel 14e5b06029
Image handling reworked, new image formats added (#13900)
* Image handling reworked, new image formats added

* Updated messages.po

* The dot is now part of the file extension

* Added WebP in install documentation

* Handle unhandled mime types

* Fixed animated picture detected
2024-02-17 07:45:41 +01:00
Michael caa7b6f326 "sensitive" is added to the API 2024-02-06 16:30:46 +00:00
Michael fc22a3e83f Unify searchindex table with engagement table 2024-02-01 23:08:53 +00:00
Michael ee9a68e40c New table "post-searchindex" 2024-01-17 19:46:22 +00:00
Michael 89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Hypolite Petovan 6c7dee4bcd Check media_attributes keys before using them in Mastodon\Statuses
- Address https://github.com/friendica/friendica/issues/13157#issuecomment-1832575517
2023-12-03 09:13:34 -05:00
Hypolite Petovan cbe4b60a90 Change return value to stdClass of Module\Api\Mastodon\Markers->fetchTimelines
- This ensures the JSON serialization of timeline markers is an object even when no markers are set
2023-11-27 16:10:15 -05:00
Hypolite Petovan fb19176201 Remove DI dependency in Object\Api\Mastodon\Instance
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1826792949
2023-11-26 09:48:46 -05:00
Michael ca366e5437 Issue 12743: Allow editing of media in posts 2023-11-25 12:22:25 +00:00
Hank Grabowski 379c84b7ab Fix call order of Mastodon Top level search on accounts 2023-11-24 17:06:41 -05:00
Michael 199ac64202 Issue 12530: Align the instance endpoint to the latest changes 2023-11-24 13:25:39 +00:00
Michael 8e05c282b1 Post permissions are now copied from the thread parent 2023-10-29 08:49:24 +00:00
Michael 1c67be8db0 Improve the performance of API timeline calls 2023-10-18 08:11:36 +00:00
Hypolite Petovan 1b9ec3a214 Rename BaseApi->logErrorAndJsonExit to logAndJsonError to better match the functionality
- Also it's shorter and we're paying by the character
2023-10-11 09:44:03 -04:00
Hypolite Petovan 0a91484fa0 Move jsonError out of Factory\Api\Mastodon\Error->InternalError 2023-10-11 09:44:03 -04:00
Hypolite Petovan 6a2ca1a6b6 Move jsonError out of Factory\Api\Mastodon\Error->Unauthorized 2023-10-11 09:44:03 -04:00
Hypolite Petovan 7486ebdc10 Move jsonError out of Factory\Api\Mastodon\Error->UnprocessableEntity 2023-10-11 09:44:03 -04:00
Hypolite Petovan 7f846f153d Move jsonError out of Factory\Api\Mastodon\Error->RecordNotFound 2023-10-11 09:44:02 -04:00
Hypolite Petovan 9e71610711 Make BaseApi->checkAllowedScope into an object method
- It isn't called from static contexts anymore
2023-10-11 09:43:57 -04:00
Hypolite Petovan f70a64891c Add Factory\Api\Mastodon\Error dependency to BaseApi
- Copy Factory\Api\Mastodon\Error->logError functionality to BaseApi
2023-10-11 09:43:54 -04:00
Hypolite Petovan 705b2d4c41 Add support for source_url in Mastodon\InstanceV2 2023-10-03 20:55:15 -04:00
Hypolite Petovan 642baa1f2a Rename ApipResponse->exit* methods to better show their meaning 2023-09-24 07:08:16 -04:00
Hypolite Petovan 960171c4e0 Remove dependency on super-globals in Module\Api\ApiResponse
- Updated DI dependencies to reflect the new parameters
- Updated tests to reflect the new parameters
2023-09-24 07:08:16 -04:00
Hypolite Petovan 46180d7d5b Move System::jsonError to BaseModule->jsonError
- This will ensure headers set in BaseModule->run will be carried in jsonError scenarios
- Make BaseApi->checkThrottleLimit an object method to use BaseModule->jsonError
- Deprecate jsonError() method in Core\System
2023-09-24 07:08:15 -04:00
Hypolite Petovan 81279dad9e Move System::jsonExit to BaseModule->jsonExit
- This will ensure headers set in BaseModule->run will be carried in jsonExit scenarios
- Deprecate jsonExit() method in Core\System
2023-09-24 07:08:15 -04:00
Hypolite Petovan dad3404ac5 Replace remaining references to default banner image by api.mastodon_banner configuration value
- Ensure leading slash is present at every place the configuration value is used
2023-08-17 21:58:53 -04:00
Hank Grabowski 0985ddb3ff Add PR and Issue Numbers for TODO for createFromUriId hack in Mastodon API 2023-08-15 15:23:31 -04:00
Hank G 09a612670a
Merge branch 'friendica:develop' into mastodon-api-reshare-fixes 2023-08-13 15:42:22 -04:00
Michael 7ad8894871 Improvements for Youtube posta via API 2023-08-01 14:27:56 +00:00
Hank Grabowski b0fe1927d5 Fix Mastodon API bookmark, mute, pin, reblog EPs temporarily by checking if blog in post func 2023-07-26 19:12:24 +02:00
Hank Grabowski 7a556d1588 Fix Mastodon API fav/unfav temporarily by checking if blog in post func 2023-07-26 19:12:24 +02:00
Michael 9e434c15dc API: Description added at picture upload 2023-07-25 21:27:12 +00:00
Michael 8bb33dccd1 Unified BBCode conversion, improved proxy functionality 2023-07-15 20:12:08 +00:00
Hypolite Petovan 76de49a25c Add fields to Report entity
- Add clock dependency to Moderation\Factory\Report
- Change DateTime field to DateTimeImmutable to satisfy Clock return type
- Add category, status and resolution constants
2023-07-09 18:32:42 -04:00
Michael ef309cbcd3 Fix id/uri-id chaos in API calls 2023-07-08 07:55:18 +00:00
Hank Grabowski 031ef6a05a Fix Mastodon API Status->Context endpoint so doesn't return deleted statuses 2023-06-22 21:56:38 -04:00
Hypolite Petovan 4f7740264e Replace "group" with "circle" in the rest of the code
- Remaining mentions already mean "forum"
2023-05-27 22:01:45 -04:00
Tobias Diekershoff d425f2eaac
Merge pull request #13066 from annando/issue-13041
Issue 13041: API activities for reshared posts are now performed on the original posts
2023-05-01 07:26:53 +02:00
Michael e1dfcc35d7 Issue 13052: The limit parameter now behaves like the Mastodon counterpart 2023-05-01 04:56:45 +00:00
Michael a5b00e9199 Issue 13041: API activities for reshared posts are now performed on the original posts 2023-05-01 04:01:11 +00:00
Hypolite Petovan 6d3a4ea2b3 Wrap last remaining system.maximagesize config retrieval in Strings::getBytesFromShorthand call
- Address https://github.com/friendica/friendica/issues/13023#issuecomment-1520073381
2023-04-27 23:09:48 -04:00