microformat mentions can have an implicit property (#12189)

See the first example here: http://microformats.org/wiki/microformats2#hyperlinked_person
lolsob-rspec
nightpool 2019-10-24 16:46:15 -04:00 committed by Eugen Rochko
parent 4b059fdfde
commit d4ddfc486a
1 changed files with 1 additions and 1 deletions

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