Fix preview card being fetched even when a status has a quote or media attachment (#34770)

This commit is contained in:
Claire 2025-05-22 14:42:16 +02:00 committed by GitHub
parent 79ccba1758
commit 80849fbfba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ class FetchLinkCardService < BaseService
@status = status
@original_url = parse_urls
return if @original_url.nil? || @status.with_preview_card?
return if @original_url.nil? || @status.with_preview_card? || @status.with_media? || @status.quote.present?
@url = @original_url.to_s