RelMe.maybe_put_rel_me/2: When true put "me" otherwise nil
This commit is contained in:
parent
39a5bea9b7
commit
8e6f7fdb86
2 changed files with 7 additions and 6 deletions
|
|
@ -40,12 +40,12 @@ defmodule Pleroma.Web.RelMe do
|
|||
|
||||
true = Enum.any?(rel_me_hrefs, fn x -> x in profile_urls end)
|
||||
|
||||
"rel=\"me\" "
|
||||
"me"
|
||||
rescue
|
||||
_ -> ""
|
||||
_ -> nil
|
||||
end
|
||||
|
||||
def maybe_put_rel_me(_, _) do
|
||||
""
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue