Change link previews to keep original URL from the status (#27312)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2023-11-13 09:58:28 +00:00
1 parent 9dc3ce878b
commit 0d14fcebae
19 files changed
+70 -30

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ namespace :tests do
exit(1)
end
unless Status.find(12).preview_cards.pluck(:url) == ['https://joinmastodon.org/']
unless PreviewCard.where(id: PreviewCardsStatus.where(status_id: 12).select(:preview_card_id)).pluck(:url) == ['https://joinmastodon.org/']
puts 'Preview cards not deduplicated as expected'
exit(1)
end