Consider a case when inbox is nil
This commit is contained in:
parent
03e54aaba9
commit
6ad4acea50
@ -159,9 +159,12 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
|
|||||||
end
|
end
|
||||||
|
|
||||||
defp should_federate?(inbox, public) do
|
defp should_federate?(inbox, public) do
|
||||||
if public do
|
cond do
|
||||||
|
inbox == nil ->
|
||||||
|
false
|
||||||
|
public ->
|
||||||
true
|
true
|
||||||
else
|
true ->
|
||||||
%{host: host} = URI.parse(inbox)
|
%{host: host} = URI.parse(inbox)
|
||||||
|
|
||||||
quarantined_instances =
|
quarantined_instances =
|
||||||
|
Loading…
Reference in New Issue
Block a user