Commit Graph

51 Commits

Author SHA1 Message Date
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 89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00: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 642baa1f2a Rename ApipResponse->exit* methods to better show their meaning 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 4f7740264e Replace "group" with "circle" in the rest of the code
- Remaining mentions already mean "forum"
2023-05-27 22:01:45 -04: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
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Michael Vogel 0209c39e0a
Update src/Module/Api/Twitter/Statuses/Update.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-12-12 15:51:14 +01:00
Michael d05910a6e5 API: Allow permissions for status posts 2022-12-11 22:48:43 +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
Roland Häder eaed3945d1
Changed:
- used `$this->getRequestValue($request, 'foo', <bar>)` instead of `$request['foo'] ?? <bar>`
- fixed wrong variable naming
- changed double-quotes to single
- see https://github.com/friendica/friendica/issues/11631#issuecomment-1196410497
2022-07-29 00:38:46 +02:00
Michael 4803b99157 API: Fix "in_reply_to_status_id" 2022-03-08 20:46:26 +00:00
Michael f059e56e0f Fix test / Use new expandTags function 2022-03-02 17:17:07 +00:00
Michael f853d58198 API: Forum mentions are now working 2022-03-02 06:59:07 +00:00
Michael bf5c8a2c43 API: several fixes to the Twitter/Statusnet API 2022-02-25 19:16:40 +00:00
Michael fd4926b0f3 More parameter handling improved 2022-01-16 18:04:05 +00:00
Michael 720a43461d Fixed max value check, improved request value fetching 2022-01-16 15:22:35 +00:00
Michael a3173ccb50 Define reasonable min and max values 2022-01-16 15:03:01 +00:00
Michael 4724000d06 Unify request value handling 2022-01-16 14:04:20 +00:00
Michael 7b68a5956e Improved handling of boolean input values 2022-01-16 09:24:35 +00:00
Philipp Holzer 20934d73b0
Add missing Twitter API routes for IDs 2022-01-08 21:53:19 +01:00
Philipp 322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Philipp 245d194f87
Update src/Module/Api/Twitter/Statuses/Destroy.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-12-10 10:14:30 +01:00
Philipp Holzer 631b9a84fc
Reenable Twitter/Retweet tests 2021-12-09 22:45:52 +01:00
Philipp Holzer 204b8b6e49
Reenable Twitter/Media Post tests 2021-12-09 22:08:31 +01:00
Philipp Holzer f9c490b29a
Reenable Twitter/UserTimeline tests 2021-12-09 21:23:58 +01:00
Philipp Holzer ccf7e251b5
Reenable Twitter/Statuses tests 2021-12-09 21:17:00 +01:00
Philipp Holzer 4d330f2876
Reenable Twitter/Destroy tests 2021-12-09 21:03:33 +01:00
Michael bd2ee581d3 Diaspora reshares via API are fixed now 2021-12-02 06:33:19 +00:00
Michael 03d2160690 Removed second ppst parameter 2021-11-30 21:41:10 +00:00
Michael 56f8adcb80 Merge remote-tracking branch 'upstream/2021.12-rc' into api-fixes 2021-11-30 19:07:24 +00:00
Philipp Holzer a88cc8d5c8 Replace `DI::apiResponse()->exit()` with `$this->response->exit()` 2021-11-30 01:08:00 -05:00
Michael e7e74819a3 Fix posting pictures 2021-11-29 18:03:34 +00:00
Michael 0440765849 Set item permissions on reshare 2021-11-29 04:38:58 +00:00
Michael cf999e681c Standards 2021-11-28 13:58:26 +00:00
Michael 367479e50e Standards 2021-11-28 13:52:39 +00:00
Michael 19019381e6 Fixes standards 2021-11-28 13:46:30 +00:00
Michael 222b35684d API: Added more functions, fixed function names 2021-11-28 13:34:00 +00:00
Michael b15d3a2523 API: Next bunch of functions transformed 2021-11-27 22:25:36 -05:00
Philipp Holzer 056702c1e0
Fixing wrong inherited methodsyntax 2021-11-27 19:58:24 +01:00
Michael fb47389c69 API: Fix profile_url handling / missing constant 2021-11-26 07:55:02 +00:00
Michael 44555cddb8 More functions moved 2021-11-25 06:00:58 +00:00
Michael 97719ca207 Standards 2021-11-24 23:36:41 +00:00
Michael 6d1d4789f1 Standards ... 2021-11-24 23:35:01 +00:00
Michael 299d70ca1d Standards 2021-11-24 23:31:10 +00:00
Michael 556bcfe78f Some more standards 2021-11-24 23:28:06 +00:00
Michael 260ee13d07 Standards 2021-11-24 23:24:35 +00:00
Michael bd1306d020 Removed whitespace 2021-11-24 23:20:42 +00:00