Pleroma v1.1.9-10-g42f76306+dev Pleroma.Object.Containment View Source

This module contains some useful functions for containing objects to specific origins and determining those origins. They previously lived in the ActivityPub Transmogrifier module.

Object containment is an important step in validating remote objects to prevent spoofing, therefore removal of object containment functions is NOT recommended.

Link to this section Summary

Functions

Checks that an imported AP object's actor matches the domain it came from.

Link to this section Functions

Link to this function

contain_origin(id, params)

View Source

Checks that an imported AP object's actor matches the domain it came from.

Link to this function

contain_origin_from_id(id, params)

View Source