mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 00:14:48 +00:00
Only refresh groups that need updating
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
74e0e009d1
commit
e70b21ae79
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ defmodule Mobilizon.Federation.ActivityPub.Refresher do
|
||||||
def refresh_all_external_groups do
|
def refresh_all_external_groups do
|
||||||
Repo.transaction(fn ->
|
Repo.transaction(fn ->
|
||||||
Actors.list_external_groups_for_stream()
|
Actors.list_external_groups_for_stream()
|
||||||
|
|> Stream.filter(&Actors.needs_update?/1)
|
||||||
|> Stream.map(&refresh_profile/1)
|
|> Stream.map(&refresh_profile/1)
|
||||||
|> Stream.run()
|
|> Stream.run()
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue