akkoma/lib/pleroma/web/activity_pub
Oneric b0a46c1e2e Normalise public adressing to fix federation
Due to JSON-LD compaction the full address of public scope
may also occur in shorter forms and the spec requires us to treat them
all equivalently. To save us the pain of repeatedly checking for all
variants internally, normalise inbound data to just one form.
See note at: https://www.w3.org/TR/activitypub/#public-addressing

This needs to happen very early, even before the other addressing fixes
else an earlier validator will reject the object. This in turn required
to move the list-tpye normalisation earlier as well, but since I was
unsure about putting empty lists into the data when no such field
existed before, I excluded this case and thus the later fixing had to be
kept as well.

Fixes: AkkomaGang/akkoma#670
2024-04-25 18:45:16 +02:00
..
activity_pub Remove deps from Streaming/Persisting behaviors 2021-06-01 13:55:07 -05:00
mrf MRF.InlineQuotePolicy: Add link to post URL, not ID 2024-04-12 13:23:50 +02:00
object_validator Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
object_validators Accept all standard actor types 2024-04-23 18:14:34 +02:00
side_effects Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
views remove upload_media from AP representation 2024-04-23 14:35:52 +01:00
activity_pub.ex fix pattern matching in fetch errors 2024-04-13 23:55:26 +01:00
activity_pub_controller.ex Keep READ endpoints, purge WRITE 2024-04-19 11:06:01 +01:00
builder.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
internal_fetch_actor.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mrf.ex Support elixir1.15 2023-08-03 17:44:09 +01:00
object_validator.ex Post editing (#202) 2022-09-06 19:24:02 +00:00
pipeline.ex Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
publisher.ex MIX FORMAT 2023-08-15 23:26:22 +01:00
relay.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
side_effects.ex Add ability to auto-approve followbacks 2024-02-13 15:42:37 +01:00
transmogrifier.ex Normalise public adressing to fix federation 2024-04-25 18:45:16 +02:00
utils.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
visibility.ex local-only-fixed (#138) 2022-08-02 14:46:46 +00:00