Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85830427
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
959 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/lib/pleroma/web/metadata/rel_me.ex b/lib/pleroma/web/metadata/rel_me.ex
index 8905c9c72..86535525f 100644
--- a/lib/pleroma/web/metadata/rel_me.ex
+++ b/lib/pleroma/web/metadata/rel_me.ex
@@ -1,19 +1,21 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Metadata.Providers.RelMe do
alias Pleroma.Web.Metadata.Providers.Provider
@behaviour Provider
@impl Provider
- def build_tags(%{user: user}) do
- bio_tree = Floki.parse_fragment!(user.bio)
+ def build_tags(%{user: %{bio: bio}}) when is_binary(bio) do
+ bio_tree = Floki.parse_fragment!(bio)
(Floki.attribute(bio_tree, "link[rel~=me]", "href") ++
Floki.attribute(bio_tree, "a[rel~=me]", "href"))
|> Enum.map(fn link ->
{:link, [rel: "me", href: link], []}
end)
end
+
+ def build_tags(_), do: []
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 1, 4:29 AM (18 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802439
Default Alt Text
(959 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline