This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Skip link-back check if body is nil (
#9107
)
pull/4/head
abcang
5 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