Merge branch 'webfinger-fixes' into 'master'
Webfinger fixes See merge request framasoft/mobilizon!614
This commit is contained in:
commit
3266199947
@ -93,7 +93,7 @@ defmodule Mobilizon.Federation.WebFinger do
|
||||
|
||||
_ ->
|
||||
Logger.debug(fn ->
|
||||
"Unhandled type: #{inspect(link["type"])}"
|
||||
"Unhandled type to finger: #{inspect(link["type"])}"
|
||||
end)
|
||||
|
||||
data
|
||||
|
@ -1616,6 +1616,12 @@ defmodule Mobilizon.Actors do
|
||||
from(a in query, where: a.preferred_username == ^name and is_nil(a.domain))
|
||||
end
|
||||
|
||||
@own_domain Mobilizon.Config.instance_hostname()
|
||||
|
||||
defp filter_by_name(query, [name, @own_domain]) do
|
||||
filter_by_name(query, [name])
|
||||
end
|
||||
|
||||
defp filter_by_name(query, [name, domain]) do
|
||||
from(a in query, where: a.preferred_username == ^name and a.domain == ^domain)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user