This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
strip leading & trailing spaces from remote follow acct (
#997
) (
#2321
)
master
codl
7 years ago
committed by
Eugen
parent
629d35e6f5
commit
8565ba68f7
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/remote_follow.rb
+ 1
- 1
app/models/remote_follow.rb
View File
@ -8,6 +8,6 @@ class RemoteFollow
validates
:acct
,
presence
:
true
validates
:acct
,
presence
:
true
def
initialize
(
attrs
=
{
}
)
def
initialize
(
attrs
=
{
}
)
@acct
=
attrs
[
:acct
]
@acct
=
attrs
[
:acct
]
.
strip
unless
attrs
[
:acct
]
.
nil?
end
end
end
end
Write
Preview
Loading…
Cancel
Save