diff options
author | ThibG <thib@sitedethib.com> | 2019-05-15 18:44:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 18:44:21 +0200 |
commit | c1cf8c1636e0a639cced585f0cb234547a64d417 (patch) | |
tree | 77b40e8bb0b1682bebaebebfa32d135ba406ac14 /lib | |
parent | 4bab7d7640a72ffeb04c104a93ad6d3d5700c712 (diff) | |
parent | 6badf2d252a980d496b894c7258a778c57639953 (diff) |
Merge pull request #1049 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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] |