about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-10-28 16:25:55 +0100
committerGitHub <noreply@github.com>2019-10-28 16:25:55 +0100
commit00793a86bc52e4cb37318e42ea4ceb37a896c727 (patch)
tree1c49c58aa3c45a4ccc5c513ed0539facaf6cc137 /app/services
parent18c07738a6b0fa3558863dbb1610695ab6f11b74 (diff)
parent046cd05a839896ffa3aedb3270c7487f0766bdf9 (diff)
Merge pull request #1240 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fetch_link_card_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb
index f0b1169db..640c60fd4 100644
--- a/app/services/fetch_link_card_service.rb
+++ b/app/services/fetch_link_card_service.rb
@@ -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