Pārlūkot izejas kodu

microformat mentions can have an implicit property (#12189)

See the first example here: http://microformats.org/wiki/microformats2#hyperlinked_person
master^2
nightpool pirms 4 gadiem
committed by Eugen Rochko
vecāks
revīzija
9762fe382c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app/services/fetch_link_card_service.rb

+ 1
- 1
app/services/fetch_link_card_service.rb Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt