1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-29 19:05:19 +01:00

Webfinger: Remove leading @s.

This commit is contained in:
lain 2018-02-23 16:55:12 +01:00
parent aa79d64e0d
commit 1331a39d39

View File

@ -105,6 +105,7 @@ defmodule Pleroma.Web.WebFinger do
end
def finger(account) do
account = String.trim_leading(account, "@")
domain = with [_name, domain] <- String.split(account, "@") do
domain
else _e ->