mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: wasn't extracting links to quoted posts
This commit is contained in:
9
lib/onebox/discourse_onebox_sanitize_config.rb
Normal file
9
lib/onebox/discourse_onebox_sanitize_config.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class Sanitize
|
||||
module Config
|
||||
|
||||
DISCOURSE_ONEBOX ||= freeze_config merge(ONEBOX,
|
||||
attributes: merge(ONEBOX[:attributes], 'aside' => [:data])
|
||||
)
|
||||
|
||||
end
|
||||
end
|
||||
@@ -69,7 +69,7 @@ module Onebox
|
||||
first_post = topic.ordered_posts.first
|
||||
|
||||
args = {
|
||||
topic: topic.id,
|
||||
topic_id: topic.id,
|
||||
avatar: PrettyText.avatar_img(topic.user.avatar_template, "tiny"),
|
||||
original_url: @url,
|
||||
title: PrettyText.unescape_emoji(CGI::escapeHTML(topic.title)),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<aside class='quote topic-onebox' data-post="1" data-topic="{{topic}}">
|
||||
<aside class='quote' data-post="1" data-topic="{{topic_id}}">
|
||||
<div class='title'>
|
||||
{{{avatar}}}
|
||||
<a href="{{original_url}}">{{{title}}}</a> {{{category_html}}}
|
||||
|
||||
Reference in New Issue
Block a user