Skip to content
Snippets Groups Projects
Commit 9762fe38 authored by nightpool's avatar nightpool Committed by Eugen Rochko
Browse files

microformat mentions can have an implicit property (#12189)

parent 3ebd9035
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment