From: lain Date: Fri, 23 Feb 2018 15:55:12 +0000 (+0100) Subject: Webfinger: Remove leading @s. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1331a39d3997cd93ae08b778a793ea0f2a3b8523;p=akkoma Webfinger: Remove leading @s. --- diff --git a/lib/pleroma/web/web_finger/web_finger.ex b/lib/pleroma/web/web_finger/web_finger.ex index 54cbf4cea..bbd65da61 100644 --- a/lib/pleroma/web/web_finger/web_finger.ex +++ b/lib/pleroma/web/web_finger/web_finger.ex @@ -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 ->