This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
microformat mentions can have an implicit property (
#12189
)
See the first example here:
http://microformats.org/wiki/microformats2#hyperlinked_person
closed-social-v3
nightpool
5 years ago
committed by
Eugen Rochko
parent
3ebd903535
commit
9762fe382c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/services/fetch_link_card_service.rb
+ 1
- 1
app/services/fetch_link_card_service.rb
View File
@ -84,7 +84,7 @@ class FetchLinkCardService < BaseService
def
skip_link?
(
a
)
# Avoid links for hashtags and mentions (microformats)
a
[
'rel'
]
&
.
include?
(
'tag'
)
||
a
[
'class'
]
&
.
include?
(
'u-url'
)
||
mention_link?
(
a
)
a
[
'rel'
]
&
.
include?
(
'tag'
)
||
a
[
'class'
]
&
.
match?
(
/
u-url|h-card
/
)
||
mention_link?
(
a
)
end
def
attempt_oembed
Write
Preview
Loading…
Cancel
Save