Let's not be silly.
This commit is contained in:
parent
be04d3528c
commit
99965adb7b
3
Rakefile
3
Rakefile
|
@ -165,7 +165,8 @@ namespace :justask do
|
||||||
user = User.find_by_screen_name(args[:screen_name])
|
user = User.find_by_screen_name(args[:screen_name])
|
||||||
fail "user #{args[:screen_name]} not found" if user.nil?
|
fail "user #{args[:screen_name]} not found" if user.nil?
|
||||||
user.permanently_banned = false
|
user.permanently_banned = false
|
||||||
user.banned_until = DateTime.now - 0.00001
|
user.banned_until = nil
|
||||||
|
user.ban_reason = nil
|
||||||
user.save!
|
user.save!
|
||||||
puts "#{user.screen_name} is no longer banned."
|
puts "#{user.screen_name} is no longer banned."
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue