strip leading & trailing spaces from remote follow acct (#997) (#2321)

lolsob-rspec
codl 2017-04-22 15:08:30 +02:00 committed by Eugen
parent 1a0960ba88
commit 064101f8c6
1 changed files with 1 additions and 1 deletions

View File

@ -8,6 +8,6 @@ class RemoteFollow
validates :acct, presence: true
def initialize(attrs = {})
@acct = attrs[:acct]
@acct = attrs[:acct].strip unless attrs[:acct].nil?
end
end