mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add support for lists to readability topic importing.
This commit is contained in:
@@ -46,7 +46,7 @@ class TopicEmbed < ActiveRecord::Base
|
||||
|
||||
opts = opts || {}
|
||||
doc = Readability::Document.new(open(url).read,
|
||||
tags: %w[div p code pre h1 h2 h3 b em i strong a img],
|
||||
tags: %w[div p code pre h1 h2 h3 b em i strong a img ul li ol],
|
||||
attributes: %w[href src])
|
||||
|
||||
TopicEmbed.import(user, url, opts[:title] || doc.title, doc.content)
|
||||
|
||||
Reference in New Issue
Block a user