FIX: use the avatar of the post rather than the topic in local oneboxes

This commit is contained in:
Régis Hanol
2018-02-20 19:49:39 +01:00
parent a4bc54a686
commit 0799831dbe
2 changed files with 13 additions and 4 deletions

View File

@@ -202,7 +202,7 @@ module Oneboxer
else
args = {
topic_id: topic.id,
avatar: PrettyText.avatar_img(topic.user.avatar_template, "tiny"),
avatar: PrettyText.avatar_img(post.user.avatar_template, "tiny"),
original_url: url,
title: PrettyText.unescape_emoji(CGI::escapeHTML(topic.title)),
category_html: CategoryBadge.html_for(topic.category),