View Source ActivityPub.Safety.Containment (Bonfire v0.9.10-classic-beta.169)
This module contains some useful functions for containing objects to specific
origins and determining those origins. They previously lived in the
ActivityPub Transformer
module.
Object containment is an important step in validating remote objects to prevent spoofing, therefore removal of object containment functions is NOT recommended.
Summary
Functions
Checks that an imported AP object's actor matches the host it came from.
Functions
Checks that an imported AP object's actor matches the host it came from.
@spec visible_for_user?(ActivityPub.Object.t() | nil, User.t() | nil) :: boolean()