projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa79d64
)
Webfinger: Remove leading @s.
author
lain
<lain@soykaf.club>
Fri, 23 Feb 2018 15:55:12 +0000
(16:55 +0100)
committer
lain
<lain@soykaf.club>
Fri, 23 Feb 2018 15:55:12 +0000
(16:55 +0100)
lib/pleroma/web/web_finger/web_finger.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/web_finger/web_finger.ex
b/lib/pleroma/web/web_finger/web_finger.ex
index 54cbf4ceab3a4cd5921c1c4621c60a5fc215ba2d..bbd65da61627af8e739b0292b5b9fba624c670fa 100644
(file)
--- 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 ->