1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 06:48:45 +09:00

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

This commit is contained in:
codl 2017-04-22 15:08:30 +02:00 committed by Eugen
parent 629d35e6f5
commit 8565ba68f7

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