about summary refs log tree commit diff
path: root/app/models/remote_follow.rb
diff options
context:
space:
mode:
authorcodl <codl@codl.fr>2017-04-22 15:08:30 +0200
committerEugen <eugen@zeonfederated.com>2017-04-22 15:08:30 +0200
commit8565ba68f7a6e4342cd4a63833b4d0ff743f0235 (patch)
treec69840c417cd0d4ebe6809f4c1e2cb2d27a73ff8 /app/models/remote_follow.rb
parent629d35e6f5d353d30661c1af7bbcc8aa6411e698 (diff)
strip leading & trailing spaces from remote follow acct (#997) (#2321)
Diffstat (limited to 'app/models/remote_follow.rb')
-rw-r--r--app/models/remote_follow.rb2
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