From 064101f8c67718ba4ae61528fb173cf83b69ada6 Mon Sep 17 00:00:00 2001 From: codl Date: Sat, 22 Apr 2017 15:08:30 +0200 Subject: [PATCH] strip leading & trailing spaces from remote follow acct (#997) (#2321) --- app/models/remote_follow.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/remote_follow.rb b/app/models/remote_follow.rb index 13281a4fcc..6c291e22cd 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