about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-09-29 11:40:40 +0200
committerYamagishi Kazutoshi <ykzts@desire.sh>2018-09-29 18:40:40 +0900
commitac07bfb018b61dd1d9e6c47d4ebafe822d606e59 (patch)
tree817adbf9add0f4714f5c79b14f2e550e87cf01c1
parentdf2f4052b84e68d36341df5fb58755276e9bf3ce (diff)
Fix tootctl accounts reattaching not unsuspending deleted account (#8812)
-rw-r--r--lib/mastodon/accounts_cli.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb
index b743c5ea1..704cf474b 100644
--- a/lib/mastodon/accounts_cli.rb
+++ b/lib/mastodon/accounts_cli.rb
@@ -83,7 +83,8 @@ module Mastodon
         end
       end
 
-      user.account = account
+      account.suspended = false
+      user.account      = account
 
       if user.save
         if options[:confirmed]