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.
This commit is contained in:
Mike Verdone 2019-07-23 16:33:45 +02:00
commit 36012ef6c1
4 changed files with 37 additions and 3 deletions

View file

@ -158,7 +158,7 @@ defmodule Pleroma.Factory do
end
def expiration_in_the_future_factory(attrs \\ %{}) do
expiration_offset_by_minutes(attrs, 60)
expiration_offset_by_minutes(attrs, 61)
end
def article_activity_factory do