akkoma/lib/pleroma/web
Oneric b0a46c1e2e
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
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: #670
2024-04-25 18:45:16 +02:00
..
activity_pub Normalise public adressing to fix federation 2024-04-25 18:45:16 +02:00
admin_api
akkoma_api
api_spec
auth
common_api
fallback
federator
feed
mailer
mastodon_api
media_proxy
metadata
mongoose_im
nodeinfo
o_auth
o_status
pleroma_api
plugs Format, but this time with a non-ancient version of elixir 2024-04-19 18:07:50 +02:00
preload/providers
push
rich_media
static_fe
templates
twitter_api
utils
views
web_finger
api_spec.ex
common_api.ex
controller_helper.ex
embed_controller.ex
endpoint.ex
federator.ex
gettext.ex
instance_document.ex
manifest_controller.ex
masto_fe_controller.ex
media_proxy.ex
metadata.ex
o_auth.ex
pipelines.ex
plug.ex
preload.ex
push.ex
rel_me.ex
router.ex Keep READ endpoints, purge WRITE 2024-04-19 11:06:01 +01:00
streamer.ex
swagger.ex
telemetry.ex
translation_helpers.ex
uploader_controller.ex
web_finger.ex
xml.ex