FIX: Links in quotes should be counted for rate limits

This commit is contained in:
Robin Ward
2018-02-20 20:41:27 -05:00
parent b6e82815bd
commit 5c40ae9e63
2 changed files with 8 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class PostAnalyzer
def cooked_stripped
@cooked_stripped ||= begin
doc = Nokogiri::HTML.fragment(cook(@raw, topic_id: @topic_id))
doc.css("pre, code, aside.quote, .onebox, .elided").remove
doc.css("pre, code, aside.quote > .title, aside.quote .mention, .onebox, .elided").remove
doc
end
end