mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 08:22:50 +00:00
Make sure we can't refresh the local instance
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
28f5cdd03a
commit
409439a916
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ defmodule Mobilizon.Service.Workers.RefreshInstances do
|
||||||
| {:error,
|
| {:error,
|
||||||
Mobilizon.Federation.ActivityPub.Actor.make_actor_errors()
|
Mobilizon.Federation.ActivityPub.Actor.make_actor_errors()
|
||||||
| Mobilizon.Federation.WebFinger.finger_errors()}
|
| Mobilizon.Federation.WebFinger.finger_errors()}
|
||||||
|
defp refresh_instance_actor(%Instance{domain: nil}) do
|
||||||
|
{:error, :not_remote_instance}
|
||||||
|
end
|
||||||
|
|
||||||
defp refresh_instance_actor(%Instance{domain: domain}) do
|
defp refresh_instance_actor(%Instance{domain: domain}) do
|
||||||
ActivityPubActor.find_or_make_actor_from_nickname("relay@#{domain}")
|
ActivityPubActor.find_or_make_actor_from_nickname("relay@#{domain}")
|
||||||
|
|
Loading…
Reference in a new issue