~cytrogen/masto-fe

5fd8d1e41773d2d658ea75f17240f748164e9673 — Essem 2 years ago d34d94d
Fix oversight in backup service (#25034)

1 files changed, 2 insertions(+), 2 deletions(-)

M app/services/backup_service.rb
M app/services/backup_service.rb => app/services/backup_service.rb +2 -2
@@ 101,8 101,8 @@ class BackupService < BaseService
    actor[:likes]       = 'likes.json'
    actor[:bookmarks]   = 'bookmarks.json'

    download_to_zip(tar, account.avatar, "avatar#{File.extname(account.avatar.path)}") if account.avatar.exists?
    download_to_zip(tar, account.header, "header#{File.extname(account.header.path)}") if account.header.exists?
    download_to_zip(zipfile, account.avatar, "avatar#{File.extname(account.avatar.path)}") if account.avatar.exists?
    download_to_zip(zipfile, account.header, "header#{File.extname(account.header.path)}") if account.header.exists?

    json = Oj.dump(actor)