Require that ephemeral posts live for at least one hour
authorMike Verdone <spiral@arcseconds.net>
Tue, 23 Jul 2019 14:33:45 +0000 (16:33 +0200)
committerMike Verdone <spiral@arcseconds.net>
Wed, 24 Jul 2019 12:46:08 +0000 (14:46 +0200)
commit36012ef6c1dfea2489e61063e14783fa3fb52700
treed0acbe24ee235d8e841d4c9cd3a3951483ae7b0a
parent704960b3c135d2e050308c68f5ccf5d7b7df40f8
Require that ephemeral posts live for at least one hour

If we didn't put some kind of lifetime requirement on these, I guess you
could annoy people by sending large numbers of ephemeral posts that
provoke notifications but then disappear before anyone can read them.
lib/pleroma/activity_expiration.ex
lib/pleroma/web/common_api/common_api.ex
test/activity_expiration_test.exs
test/support/factory.ex