]> cat aescling's git repositories - mastodon.git/commitdiff
Fix tootctl accounts reattaching not unsuspending deleted account (#8812)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 29 Sep 2018 09:40:40 +0000 (11:40 +0200)
committerYamagishi Kazutoshi <ykzts@desire.sh>
Sat, 29 Sep 2018 09:40:40 +0000 (18:40 +0900)
lib/mastodon/accounts_cli.rb

index b743c5ea141028fbee6f712ab4618c89eee64b67..704cf474b50bc523a91bb7104723d78c2c011466 100644 (file)
@@ -83,7 +83,8 @@ module Mastodon
         end
       end
 
-      user.account = account
+      account.suspended = false
+      user.account      = account
 
       if user.save
         if options[:confirmed]