Fix preview card being fetched even when a status has a quote or media attachment (#34770)
This commit is contained in:
@@ -19,7 +19,7 @@ class FetchLinkCardService < BaseService
|
|||||||
@status = status
|
@status = status
|
||||||
@original_url = parse_urls
|
@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
|
@url = @original_url.to_s
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user