logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 8565ba68f7a6e4342cd4a63833b4d0ff743f0235
parent: 629d35e6f5d353d30661c1af7bbcc8aa6411e698
Author: codl <codl@codl.fr>
Date:   Sat, 22 Apr 2017 15:08:30 +0200

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


Diffstat:

Mapp/models/remote_follow.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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