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

This commit is contained in:
Claire authored and GitHub committed 2025-05-22 12:42:16 +00:00
1 parent 79ccba1758
commit 80849fbfba
1 file changed
+1 -1
+1 -1
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