diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-11 17:25:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-11 17:25:49 +0200 |
commit | e6c81a635b99dcec4f8fded00d9451cb876df822 (patch) | |
tree | 37e81b36d0739181bd75c78d0d80a48eb325a2bb /app/controllers | |
parent | f93de3a516d23cddea7cce147d3da3decac85f2f (diff) |
Fix #2848 - Rake task to redownload avatars/headers (#4156)
Can be filtered by a specific domain Resolves #2292
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/accounts_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/accounts_controller.rb b/app/controllers/admin/accounts_controller.rb index ef2f8c4c2..7bceee2cd 100644 --- a/app/controllers/admin/accounts_controller.rb +++ b/app/controllers/admin/accounts_controller.rb @@ -22,8 +22,8 @@ module Admin end def redownload - @account.avatar = @account.avatar_remote_url - @account.header = @account.header_remote_url + @account.reset_avatar! + @account.reset_header! @account.save! redirect_to admin_account_path(@account.id) |