Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21968306
rel_me.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
584 B
Referenced Files
None
Subscribers
None
rel_me.ex
View Options
# 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
)
(
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
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sun, Dec 28, 3:24 AM (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
798850
Default Alt Text
rel_me.ex (584 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment