Michael
b351819986
Fix: Undefined array key "allow_cid"
2024-04-15 03:25:06 +00: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
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
Michael
ca366e5437
Issue 12743: Allow editing of media in posts
2023-11-25 12:22:25 +00:00
Michael
8e05c282b1
Post permissions are now copied from the thread parent
2023-10-29 08:49:24 +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
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
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
Michael
7ad8894871
Improvements for Youtube posta via API
2023-08-01 14:27:56 +00: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
Michael
a5b00e9199
Issue 13041: API activities for reshared posts are now performed on the original posts
2023-05-01 04:01:11 +00:00
Michael
9df68da80e
Fix some warnings
2023-03-31 18:01:10 +00:00
Josh Soref
2b819b8f8c
spelling: resource
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 20:04:18 -04:00
Josh Soref
39a5bfc0c0
spelling: parameter
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:14:16 -04:00
Michael
8a55ce2415
Set different permissions for comments via API
2023-03-24 20:39:11 +00:00
Hypolite Petovan
a0f3a49238
Merge pull request #12895 from HankG/mastodon-status-edit-fix-deleting-all-images
...
Fix being able to remove all images from post through Mastodon editing
2023-03-16 16:41:09 -04:00
Hank Grabowski
02a87d9f33
Fix being able to change/remove attached links.
2023-03-16 14:34:39 -04:00
Hank Grabowski
e7058ffe8c
Fix being able to remove all images from post through Mastodon edit endpoint
2023-03-16 14:01:36 -04:00
Hank Grabowski
bb2f678d6b
Fix tag and mention updates in Mastodon status edit endpoint
2023-03-16 10:53:13 -04:00
Michael
e3047794f9
Merge remote-tracking branch 'upstream/2023.03-rc' into api-edit
2023-03-14 21:46:24 +00:00
Michael
4e070f65c7
Option to automatically add links as attachment via API
2023-03-13 21:30:20 +00:00
Michael
59c436b442
Merge remote-tracking branch 'upstream/develop' into api-edit
2023-03-13 05:33:32 +00:00
Hank G
a6e9f9c89e
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-03-12 11:43:59 -04:00
Hank Grabowski
7ccc978bc5
Add title/spoiler text handling and capturing invalid update to Mastodon edit
2023-02-28 15:35:37 -05:00
Michael
98aed4dde3
Adding and removing of pictures via API is now possible
2023-02-28 06:19:19 +00:00
Hank G
f1dbf82e5b
Update src/Module/Api/Mastodon/Statuses.php
...
Co-authored-by: Philipp <admin+Github@philipp.info>
2023-02-19 07:50:39 -05:00
Hank Grabowski
4b2ee284d8
Change check for friendica-title key to use isa and always set
2023-02-18 10:07:08 -05:00
Hank Grabowski
f10821f915
Add friendica->title input to Mastodon Status POST API for explicitly setting title
...
- update logic so that if it is provided with a spoiler text then the spoiler text is always used as actual spoiler text and the title is the title.
2023-02-17 17:42:55 -05:00
Michael
b6fcfebd56
Switch parameters
2023-01-25 20:14:33 +00:00
Michael
49d513f8d2
API: added positiv list for quote support
2023-01-25 06:26:17 +00:00
Michael
d0373ab414
Issue 12603: Support quote in the api / Issue 12654: prevent privacy leakage
2023-01-23 21:24:50 +00:00
Michael
5a01fb0521
Don't show reblogged on single post
2023-01-23 17:56:45 +00:00
Michael
8e4e2eecb7
Issue 12702: Let the user decide how to handle spoiler texts
2023-01-22 17:10:31 +00:00
Hypolite Petovan
1874a32728
Happy New Year 2023!
2023-01-01 09:36:24 -05:00
Michael
92807d86a3
API: Enable edit
2022-11-25 19:35:40 +00:00
Roland Häder
26e0469de7
Merge branch 'develop' into rewrite/gravity-constants
2022-10-18 16:34:40 +02:00
Michael
018858934b
The priority is now a class constant
2022-10-17 05:49:55 +00:00
Roland Häder
da66730e4f
Rewrite:
...
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item
- also rewrote some array initialization:
From:
````
<?php
$arr = [];
$arr['foo'] = "FOO";
````
To:
````
<?php
$arr['foo'] = "FOO";
````
- added a few type-hints
2022-10-15 00:44:06 +02:00
Hypolite Petovan
eb8237dd89
Remove unused uid parameter in Item::newURI
2022-07-09 07:39:51 -04:00
Michael
f34b7b91fa
API: New Mastodon endpoints added
2022-04-21 19:58:56 +00:00
Michael
e0468ac914
API: Improve support for the summary field
2022-03-08 18:32:09 +00:00
Michael
5539e42743
API: Support for the "direct" visibility
2022-03-05 06:14:30 +00:00
Michael
15de709b89
API: We can now post to groups via the Mastodon endpoint
2022-03-04 05:50:33 +00:00
Michael
f059e56e0f
Fix test / Use new expandTags function
2022-03-02 17:17:07 +00:00