GTS: cherry-picks and collection usage #186

Merged
floatingghost merged 8 commits from gts-cherry-picks into develop 2022-08-27 18:05:48 +00:00

8 Commits

Author SHA1 Message Date
FloatingGhost 7cbdf819f6 mix format
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2022-08-27 18:43:29 +01:00
FloatingGhost 0ad42bddee allow items to just be an array
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline failed Details
2022-08-27 18:40:57 +01:00
FloatingGhost a3d4e61459 mix format
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2022-08-27 18:24:33 +01:00
FloatingGhost a5e09da80b include query string checks for aliases
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline failed Details
2022-08-27 18:22:51 +01:00
FloatingGhost 21245e7323 Remove circular dependency between common_fixes and transmogrifier
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details
2022-08-27 18:11:11 +01:00
FloatingGhost 0d2dca8ea3 use akkoma collections for everything 2022-08-27 18:04:45 +01:00
Hélène 2704a3dac5 ArticleNotePageValidator: fix replies fixing
Some software, like GoToSocial, expose replies as ActivityPub
Collections, but do not expose any item array directly in the object,
causing validation to fail via the ObjectID validator. Now, Pleroma will
drop that field in this situation too.
2022-08-27 17:02:17 +01:00
Hélène d991a3eee0 HttpSignaturePlug: accept standard (request-target)
The (request-target) used by Pleroma is non-standard, but many HTTP
signature implementations do it this way due to a misinterpretation of
the draft 06 of HTTP signatures: "path" was interpreted as not having
the query, though later examples show that it must be the absolute path
with the query part of the URL as well.

This behavior is kept to make sure most software (Pleroma itself,
Mastodon, and probably others) do not break, but Pleroma now accepts
signatures for a (request-target) containing the query, as expected by
many HTTP signature libraries, and clarified in the draft 11 of HTTP
signatures.

Additionally, the new draft renamed (request-target) to @request-target.
We now support both for incoming requests' signatures.
2022-08-27 17:02:00 +01:00