Skip to content

WIP: Activity expiration

M. Verdone requested to merge sixohsix/pleroma:post_expiration into develop

This is my first contribution to Pleroma, and my first time writing Elixir, so please review thoroughly! Hopefully this implementation isn't completely weird.

Implements backend support for Expiring/ephemeral posts #726 (closed)

When posting a status through the MastoAPI you can set an expires_at value to a datetime at which the status should be automatically deleted. When that time comes, Pleroma will delete the underlying activity and federate a delete message.

  • DB changes
  • Worker to delete expired activites
  • API changes to set expiration for an activity when creating that activity, specified in minutes from now
  • Expose expiration time in the API (only to the user who posted the status, in minutes until expiration)

Out of scope for this merge request

  • Federate the expiration time
Edited by lain

Merge request reports