Commit graph

65 commits

Author SHA1 Message Date
Art4
12ed714a9e Fix more errors 2024-11-17 22:26:43 +00:00
b10255ca44 Issue 14471: Fix wegfinger request 2024-10-17 22:04:31 +00:00
e8a3be6820 OStatus support removed 2024-09-11 03:44:40 +00:00
092ec00cdb Changed order of expiry commands 2024-09-08 16:19:01 +00:00
a9fbad0afe Issue 14370: Improved content negogiation 2024-09-06 18:05:36 +00:00
30a5ef33b0 REUSE src directory 2024-08-24 15:27:00 +02:00
Laura Hausmann
c83f9c3fcb
Return rel=self link for xrd+xml webfinger responses 2024-08-17 23:05:45 +02:00
Matthew Exon
d4aa5d9aad Return 400 error code when webfinger request omits resource parameter. Fixes #14292 2024-07-11 18:18:54 +02:00
Matthew Exon
958d0ba554 Match all schemes not just acct 2024-07-08 20:04:34 +02:00
Matthew Exon
1701156a18 Return 400 error code on malformed request. Fixes #14281 2024-07-08 19:23:20 +02:00
da37516abf OpenWebAuth path is now fetched during probing 2024-05-20 19:46:29 +00:00
89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
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
da1416c07f Move System::httpExit to BaseModule->httpExit
- This will ensure headers set in BaseModule->run will be carried in httpExit scenarios
- Deprecate httpExit() method in Core\System
2023-09-24 07:08:15 -04:00
6e2ab6c3af Centralize Vary header declaration in ActivityPub::isRequest
- Vary header should be set every time we vary the display based on an HTTP header value
2023-07-08 22:24:01 -04:00
Gidi Kroon
40783db161 Make requested changes 2023-06-25 20:54:04 +02:00
Gidi Kroon
6a5266c6b8 Add Vary header in case of content negotiation
Sometimes we return different content depending on whether JSON, XML or
HTML was requested in the Accept request header. The Vary response
header should list that header in these cases, to allow caching
frameworks to determine what to cache.
2023-06-25 03:22:41 +02:00
S. Brusch
d50b9612a0 Added host check on xrd request 2023-05-06 22:26:37 +02:00
b0f880d0eb Fix: Force baseUrl being a string 2023-04-15 14:17:30 +00:00
f0c29edcde
Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
8bbf9e93c6 Remove dependency to the second parameter of XML::fromArray 2023-01-01 19:20:42 -05:00
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
eb6b03b555 Add new OStatus\PortableContacts module class
- Retain existing route /poco for backward compatibility
- Remove unsupported links to /poco/{nickname} route
2022-11-14 13:48:46 -05:00
b5d01337d9
Move Follow to /contact namespace 2022-10-31 20:58:27 +01:00
79b64cc44f Detect and remove contact duplicates 2022-09-16 05:00:06 +00:00
ff89c1a8bf Template based XML generation is replaced with native XML 2022-09-11 07:00:16 +00:00
52d1b9905e
Fixes:
- fixed "get() on NULL invocation, PHP is case-sensitive here
- renamed $this->baseurl to $this->baseUrl (instance) in MoveToAvatarCache to
  make it same as everywhere else
2022-08-13 22:47:57 +02:00
f579d687a9
Fixes:
- fixed $this usage (kept) and got rid of static context
- "imported" exception class
- added some nice text to it
2022-08-13 22:32:56 +02:00
ff5673e2d8
Changed:
- used $this->baseurl instead of DI::baseurl() (@MrPetovan)
2022-08-13 06:52:09 +02:00
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
cca7d40a8f Fix: Webfinger returned xml when json has been requested and vice versa 2022-04-18 05:42:05 +00:00
c88d306a41 Use the correct content type 2022-04-11 06:07:50 +00:00
4a22034be6 Unified output via the "httpExit" function 2022-04-10 08:31:55 +00:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
8bdd90066f
Make BaseModule a real entity
- Add all dependencies, necessary to run the content (baseUrl, Arguments)
- Encapsulate all POST/GET/DELETE/PATCH/PUT methods as protected methods inside the BaseModule
- Return Module content ONLY per `BaseModule::run()` (including the Hook logic there as well)
2021-11-27 12:40:36 +01:00
489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
714f0febc4
Replace $parameters argument per method with static::$parameters 2021-11-14 23:49:05 +01:00
23b10cf2ae Some removed escapeTags calls 2021-11-05 19:59:18 +00:00
7cdd2d1336 Refactor User::getAvatarUrlForId into getAvatarUrl
- Use user/owner array as parameter instead of uid
- Rename $profile variables to $owner when it's the result of User::getOwnerDataByNick
- Replace Module\Photo::stripExtension with native pathinfo() calls
2021-10-02 19:06:25 -04:00
a91e3f5dbc Issue 10720: Use different path scheme for user avatars 2021-09-17 18:36:20 +00:00
51d549639d Fix profile probing via Pleroma 2021-08-09 06:56:41 +00:00
a26a2a0228 Make the system owner ready for Diaspora 2021-08-05 08:30:44 +00:00
df558d4056 Completely removed argc/argv 2021-07-25 15:23:37 +00:00
09aa496387 Some more places changed to the new contact avatar path format 2021-06-30 16:58:46 +00:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
b12a2c486e Use "getActorName" 2020-08-22 18:52:37 +00:00
7dbf72e454 We now fetch data with an automatically generated system user 2020-08-22 14:48:09 +00:00
f2adec6a7f Add error handling in Module\Xrd
- Address part of https://github.com/friendica/friendica/issues/8475#issuecomment-653912096
2020-07-08 09:14:34 -04:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
e944d7bed6
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-29 20:17:48 +01:00