mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 08:48:15 +00:00
Fix preview card being fetched even when a status has a quote or media attachment (#34770)
This commit is contained in:
parent
79ccba1758
commit
80849fbfba
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user