]> cat aescling's git repositories - mastodon.git/commitdiff
Touch account on successful response, change char shown when culled (#9293)
authorRenato "Lond" Cerqueira <renato@lond.com.br>
Tue, 20 Nov 2018 21:25:32 +0000 (22:25 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 20 Nov 2018 21:25:32 +0000 (22:25 +0100)
Just the color is not enough change since not everyone uses colored
terminals.
Touching the account makes it so that the account is not in the
threshold window in case of running again

lib/mastodon/accounts_cli.rb

index 142436c19a72e8b4e7948552d731888a7eab64f7..9f7870bcd33126c47ee9ecbefa635135b9c6c2fd 100644 (file)
@@ -242,8 +242,9 @@ module Mastodon
           end
 
           culled += 1
-          say('.', :green, false)
+          say('+', :green, false)
         else
+          account.touch # Touch account even during dry run to avoid getting the account into the window again
           say('.', nil, false)
         end
       end