mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: stop stripping local onebox links from tracker
When a onebox was made to a local topic it was not tracked using link tracker
This commit is contained in:
parent
cef8a0af34
commit
f932cb51f3
2 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ module PrettyText
|
|||
links = []
|
||||
doc = Nokogiri::HTML.fragment(html)
|
||||
# remove href inside quotes & elided part
|
||||
doc.css("aside.quote a, .elided a").each { |l| l["href"] = "" }
|
||||
doc.css("aside.quote:not(.topic-onebox) a, .elided a").each { |l| l["href"] = "" }
|
||||
|
||||
# extract all links from the post
|
||||
doc.css("a").each { |l|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue