Add activity expirations table
authorMike Verdone <spiral@arcseconds.net>
Mon, 22 Jul 2019 12:16:20 +0000 (14:16 +0200)
committerMike Verdone <spiral@arcseconds.net>
Wed, 24 Jul 2019 11:14:52 +0000 (13:14 +0200)
commit666514194a325e2463c05bae516b89d7c5f59316
treed98cc471458be04518cc5c5130799ef2082fbe03
parentb72940277470c67802b979e4cab44f277e8fffb3
Add activity expirations table

Add a table to store activity expirations. An activity can have zero or
one expirations. The expiration has a scheduled_at field which stores
the time at which the activity should expire and be deleted.
lib/pleroma/activity.ex
lib/pleroma/activity_expiration.ex [new file with mode: 0644]
priv/repo/migrations/20190716100804_add_expirations_table.exs [new file with mode: 0644]
test/activity_expiration_test.exs [new file with mode: 0644]
test/activity_test.exs
test/support/factory.ex