Skip to content

Commit

Permalink
microformat mentions can have an implicit property (mastodon#12189)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightpool authored and Gargron committed Oct 24, 2019
1 parent 3ebd903 commit 9762fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/fetch_link_card_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def mention_link?(a)

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
Expand Down

0 comments on commit 9762fe3

Please sign in to comment.