projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Webfinger: Remove leading @s.
[akkoma]
/
lib
/
pleroma
/
web
/
web_finger
/
web_finger.ex
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
end
def finger(account) do
+ account = String.trim_leading(account, "@")
domain = with [_name, domain] <- String.split(account, "@") do
domain
else _e ->
domain = with [_name, domain] <- String.split(account, "@") do
domain
else _e ->