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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue