spc-pleroma/lib/pleroma/web/activity_pub
Mark Felder 074b31d9ab Optimistic Inbox
Rework inbound federation to accept requests optimistically. The HTTP Signatures Plug will not attempt to fetch the actor or key and will fail early.

If the signature cannot be validated we pass the required data into the Oban job with a reduced priority and increase the timeout to 20 seconds. The Oban job will handle the actor and key fetching before attempting to validate the activity again. This job will be retried 5 times by default.

Another welcome side effect is that actors who change their keys can federate to Pleroma instances immediately instead of needing to wait the default value of 86400s / 24 hours before the key will be fetched again.
2023-12-08 17:45:20 -05:00
..
activity_pub Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mrf Fix config descriptions for mrf inline quote 2023-09-13 19:20:32 -04:00
object_validator Copyright bump for 2022 2022-02-25 23:11:42 -07:00
object_validators Count and display post quotes 2023-11-12 13:38:08 +00:00
side_effects Copyright bump for 2022 2022-02-25 23:11:42 -07:00
views ObjectView: do not fetch an object for its ID 2022-09-11 04:54:04 +02:00
activity_pub.ex Merge branch 'quotes-count' into 'develop' 2023-11-12 13:38:09 +00:00
activity_pub_controller.ex Optimistic Inbox 2023-12-08 17:45:20 -05:00
builder.ex ActivityDraft: allow quoting 2023-09-13 19:19:03 -04:00
internal_fetch_actor.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mrf.ex Linting 2023-11-30 10:05:00 +04:00
object_validator.ex Add support for Image objects 2023-03-09 14:21:12 +01:00
pipeline.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
publisher.ex Publisher: Stop filtering via ap_enabled?/1 2023-05-05 11:11:26 +02:00
relay.ex Copyright bump for 2022 2022-02-25 23:11:42 -07:00
side_effects.ex Merge branch 'quotes-count' into 'develop' 2023-11-12 13:38:09 +00:00
transmogrifier.ex Unify logic for normalizing quoteUri 2023-09-13 19:19:05 -04:00
utils.ex ActivityPub.Utils: Only treat object ids as valid while stripping 2023-11-27 18:44:11 +04:00
visibility.ex Prevent remote access of local-only posts via /objects 2022-05-06 13:54:21 -04:00