Webfinger: Remove leading @s.
authorlain <lain@soykaf.club>
Fri, 23 Feb 2018 15:55:12 +0000 (16:55 +0100)
committerlain <lain@soykaf.club>
Fri, 23 Feb 2018 15:55:12 +0000 (16:55 +0100)
lib/pleroma/web/web_finger/web_finger.ex

index 54cbf4ceab3a4cd5921c1c4621c60a5fc215ba2d..bbd65da61627af8e739b0292b5b9fba624c670fa 100644 (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 ->