mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't extract links to anchors
This commit is contained in:
@@ -333,7 +333,7 @@ module PrettyText
|
||||
|
||||
# extract all links from the post
|
||||
doc.css("a").each { |l|
|
||||
unless l["href"].blank?
|
||||
unless l["href"].blank? || "#".freeze == l["href"][0]
|
||||
links << DetectedLink.new(l["href"])
|
||||
end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user