mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-26 11:05:43 -05:00
Fix: Add guards to backup to exit early on deleted accounts (#40053)
This commit is contained in:
@@ -17,8 +17,10 @@ class BackupWorker
|
||||
end
|
||||
|
||||
def perform(backup_id)
|
||||
backup = Backup.find(backup_id)
|
||||
user = backup.user
|
||||
backup = Backup.find_by(id: backup_id)
|
||||
return true if backup&.user.nil?
|
||||
|
||||
user = backup.user
|
||||
|
||||
BackupService.new.call(backup)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user