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
Skip link-back check if body is nil (
#9107
)
master
abcang
6 years ago
committed by
Eugen Rochko
parent
161aeadbb4
commit
1e2695198a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/services/verify_link_service.rb
+ 1
- 1
app/services/verify_link_service.rb
View File
@ -25,7 +25,7 @@ class VerifyLinkService < BaseService
end
def
link_back_present?
return
false
if
@body
.
empty
?
return
false
if
@body
.
blank
?
links
=
Nokogiri
::
HTML
(
@body
)
.
xpath
(
'//a[contains(concat(" ", normalize-space(@rel), " "), " me ")]|//link[contains(concat(" ", normalize-space(@rel), " "), " me ")]'
)
Write
Preview
Loading…
Cancel
Save