Prevent duplicates from being processed
This commit is contained in:
parent
3949cfdc24
commit
3989ec508c
|
@ -38,6 +38,7 @@ defp try_follow(follower, message) do
|
||||||
|
|
||||||
Enum.concat([to, cc, actor])
|
Enum.concat([to, cc, actor])
|
||||||
|> List.flatten()
|
|> List.flatten()
|
||||||
|
|> Enum.uniq()
|
||||||
|> User.get_all_by_ap_id()
|
|> User.get_all_by_ap_id()
|
||||||
|> Enum.each(fn user ->
|
|> Enum.each(fn user ->
|
||||||
since_thirty_days_ago = NaiveDateTime.utc_now() |> NaiveDateTime.add(-(86_400 * 30))
|
since_thirty_days_ago = NaiveDateTime.utc_now() |> NaiveDateTime.add(-(86_400 * 30))
|
||||||
|
|
Loading…
Reference in New Issue