mirror of
https://github.com/funamitech/mastodon
synced 2025-01-19 00:03:33 +09:00
so that public timeline/caching would not encounter incomplete data
This commit is contained in:
parent
bda7391221
commit
4a4733b397
@ -47,7 +47,11 @@ class ProcessFeedService < BaseService
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
status, just_created = nil
|
||||||
|
|
||||||
Rails.logger.debug "Creating remote status #{id}"
|
Rails.logger.debug "Creating remote status #{id}"
|
||||||
|
|
||||||
|
ApplicationRecord.transaction do
|
||||||
status, just_created = status_from_xml(@xml)
|
status, just_created = status_from_xml(@xml)
|
||||||
|
|
||||||
return if status.nil?
|
return if status.nil?
|
||||||
@ -66,6 +70,7 @@ class ProcessFeedService < BaseService
|
|||||||
end
|
end
|
||||||
|
|
||||||
status.save!
|
status.save!
|
||||||
|
end
|
||||||
|
|
||||||
notify_about_mentions!(status) unless status.reblog?
|
notify_about_mentions!(status) unless status.reblog?
|
||||||
notify_about_reblog!(status) if status.reblog? && status.reblog.account.local?
|
notify_about_reblog!(status) if status.reblog? && status.reblog.account.local?
|
||||||
|
Loading…
Reference in New Issue
Block a user