From 1331a39d3997cd93ae08b778a793ea0f2a3b8523 Mon Sep 17 00:00:00 2001 From: lain Date: Fri, 23 Feb 2018 16:55:12 +0100 Subject: [PATCH] Webfinger: Remove leading @s. --- lib/pleroma/web/web_finger/web_finger.ex | 1 + 1 file changed, 1 insertion(+) 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 -> -- 2.45.2