mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Webfinger: Remove leading @s.
This commit is contained in:
parent
aa79d64e0d
commit
1331a39d39
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ defmodule Pleroma.Web.WebFinger do
|
||||||
end
|
end
|
||||||
|
|
||||||
def finger(account) do
|
def finger(account) do
|
||||||
|
account = String.trim_leading(account, "@")
|
||||||
domain = with [_name, domain] <- String.split(account, "@") do
|
domain = with [_name, domain] <- String.split(account, "@") do
|
||||||
domain
|
domain
|
||||||
else _e ->
|
else _e ->
|
||||||
|
|
Loading…
Reference in a new issue