mirror of
https://github.com/mastodon/mastodon
synced 2024-11-24 15:16:19 +09:00
Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)
This commit is contained in:
parent
9292d998fe
commit
90bb870680
@ -7,7 +7,7 @@ class LinkCrawlWorker
|
|||||||
|
|
||||||
def perform(status_id)
|
def perform(status_id)
|
||||||
FetchLinkCardService.new.call(Status.find(status_id))
|
FetchLinkCardService.new.call(Status.find(status_id))
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound, ActiveRecord::RecordNotUnique
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user