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
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
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
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
Hank Grabowski
0a5e3c75dc
Fix Twitter NewDM API w/OAuth by passing in UID not query session
2023-03-22 18:18:49 -04:00
Philipp
f0c29edcde
Adapt BaseURL calls to new UriInterface
2023-02-18 21:12:21 +01:00
Hypolite Petovan
1874a32728
Happy New Year 2023!
2023-01-01 09:36:24 -05:00
Hypolite Petovan
0e543b2d4a
Merge pull request #12392 from annando/api-relations
...
API: Use "contact" for own relations
2022-12-14 08:06:14 -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
5312b23f03
Don't send the header
2022-12-12 03:13:24 +00:00
Michael
a2f386cd2f
Transmit header before creating user list
2022-12-12 02:43:32 +00:00
Michael
cfd09663e7
Don't display pending requests
2022-12-12 02:33:57 +00:00
Michael
89efa73195
Fix tests
2022-12-11 22:56:56 +00:00
Michael
d05910a6e5
API: Allow permissions for status posts
2022-12-11 22:48:43 +00:00
Michael
ff5da9bc71
API: Use "contact" for own relations
2022-12-11 22:26:30 +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
cfa575b8e5
Changes:
...
- added missing type-hints
- added documentation
- removed parameter $baseURL while it can be locally get the same way but
lesser parameter
- used ActivityNamespace::SALMON_ME
- changed double-quotes to single
2022-08-12 14:01:40 +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
1f1d3b2578
API: Only display active incoming contact requests
2022-03-02 05:05:49 +00:00
Hypolite Petovan
f36d4891bc
Merge pull request #11282 from annando/api-fix
...
API: several fixes to the Twitter/Statusnet API
2022-02-25 16:11:18 -05:00
Michael
bf5c8a2c43
API: several fixes to the Twitter/Statusnet API
2022-02-25 19:16:40 +00:00
Hypolite Petovan
6a1f9a7fa3
Move unfollow protocol to worker task
...
- Add uid parameter to unfollow hook
- Rework and unify Contact::unfollow, Contact::removeSharer and Contact::terminateFriendship
- Add missing twitterUser property to Twitter\Friendships\Destroy module
2022-02-24 09:35:54 -05:00
Michael
e394143148
Private forums are now working via ActivityPub
2022-02-12 18:38:36 +00:00
Michael
51dcfe134e
fixing some more tests
2022-01-16 20:58:58 +00:00
Michael
55679a6021
Possibly fixing one test
2022-01-16 20:54:14 +00:00
Michael
dc48f9b8f0
White spaces
2022-01-16 20:17:31 +00:00
Michael
0e15715088
Simplifying extension access
2022-01-16 19:38:59 +00:00
Michael
8e8ec9d2d2
Simplified contact id handling
2022-01-16 18:40:18 +00:00
Michael
fd4926b0f3
More parameter handling improved
2022-01-16 18:04:05 +00:00
Michael
6c767743d1
Improved request value handling
2022-01-16 17:30:23 +00:00
Michael
dd8d49d9cf
Replaced $_REQUEST
2022-01-16 17:03:18 +00:00
Michael
344d514857
Replaced "filter_input" with the new request value function
2022-01-16 16:40:13 +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
Michael
e6108668e3
Some more cidong style
2022-01-16 09:07:39 +00:00
Michael
7c15d0160a
Coding styles / "require_once" for removed file removed
2022-01-16 09:01:04 +00:00
Michael
f11bf08a7b
Use the $request variable
2022-01-16 07:35:20 +00:00
Michael
8ff2cc3976
Superflous spaces
2022-01-16 07:14:09 +00:00
Michael
c55c42b303
"DI" calls are replaced
2022-01-16 07:07:46 +00:00
Michael
95f085b7ac
API: The legacy API finally moved
2022-01-15 21:38:19 +00:00
Philipp
20934d73b0
Add missing Twitter API routes for IDs
2022-01-08 21:53:19 +01:00
Philipp
c588b280d7
Fix all license header & be less aggressive
2022-01-07 00:35:28 +01:00
Michael
9414edd64a
API: Functionality moved to new places
2022-01-06 07:34:16 +00:00