mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:33:17 +08:00
Add support for lists to readability topic importing.
This commit is contained in:
parent
852d110f35
commit
af9b7bfee2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user