forked from YokaiRick/akkoma
Prevent duplicates from being processed
This commit is contained in:
parent
3949cfdc24
commit
3989ec508c
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ defp try_follow(follower, message) do
|
|||
|
||||
Enum.concat([to, cc, actor])
|
||||
|> List.flatten()
|
||||
|> Enum.uniq()
|
||||
|> User.get_all_by_ap_id()
|
||||
|> Enum.each(fn user ->
|
||||
since_thirty_days_ago = NaiveDateTime.utc_now() |> NaiveDateTime.add(-(86_400 * 30))
|
||||
|
|
Loading…
Reference in a new issue