diff options
author | Reverite <github@reverite.sh> | 2019-05-15 11:12:17 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-05-15 11:12:17 -0700 |
commit | 4cea89bf2e9ce7f73fccfc637191b1e039ad25ee (patch) | |
tree | cc559ad868e13d934ff539bd2da836ddad3ea5fc /lib | |
parent | cdb159f27e2aeb2cf3bb184ac20b7056b013f714 (diff) | |
parent | c1cf8c1636e0a639cced585f0cb234547a64d417 (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli.rb | 2 | ||||
-rw-r--r-- | lib/mastodon/accounts_cli.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/cli.rb b/lib/cli.rb index 5780e3e87..be276583d 100644 --- a/lib/cli.rb +++ b/lib/cli.rb @@ -106,7 +106,7 @@ module Mastodon [json, account.id, inbox_url] end - account.update_column(:suspended, true) + account.suspend! end processed += 1 diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb index 3131647f3..7d0215313 100644 --- a/lib/mastodon/accounts_cli.rb +++ b/lib/mastodon/accounts_cli.rb @@ -87,8 +87,8 @@ module Mastodon end end - account.suspended = false - user.account = account + account.suspended_at = nil + user.account = account if user.save if options[:confirmed] |