diff options
author | codl <codl@codl.fr> | 2017-04-22 15:08:30 +0200 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-22 15:08:30 +0200 |
commit | 8565ba68f7a6e4342cd4a63833b4d0ff743f0235 (patch) | |
tree | c69840c417cd0d4ebe6809f4c1e2cb2d27a73ff8 | |
parent | 629d35e6f5d353d30661c1af7bbcc8aa6411e698 (diff) |
strip leading & trailing spaces from remote follow acct (#997) (#2321)
-rw-r--r-- | app/models/remote_follow.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/remote_follow.rb b/app/models/remote_follow.rb index 13281a4fc..6c291e22c 100644 --- a/app/models/remote_follow.rb +++ b/app/models/remote_follow.rb @@ -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 |