mirror of
https://github.com/mastodon/mastodon
synced 2024-12-01 08:18:22 +09:00
microformat mentions can have an implicit property (#12189)
See the first example here: http://microformats.org/wiki/microformats2#hyperlinked_person
This commit is contained in:
parent
3ebd903535
commit
9762fe382c
@ -84,7 +84,7 @@ class FetchLinkCardService < BaseService
|
|||||||
|
|
||||||
def skip_link?(a)
|
def skip_link?(a)
|
||||||
# Avoid links for hashtags and mentions (microformats)
|
# 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
|
end
|
||||||
|
|
||||||
def attempt_oembed
|
def attempt_oembed
|
||||||
|
Loading…
Reference in New Issue
Block a user