FIX: Use CDN URL for internal onebox avatars (#15077)

This commit will also trigger a background rebake for all existing posts with internal oneboxes
This commit is contained in:
David Taylor
2021-11-25 12:07:34 +00:00
committed by GitHub
parent fd93d6f955
commit 03998e0a29
5 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ module Oneboxer
args = {
topic_id: topic.id,
post_number: post.post_number,
avatar: PrettyText.avatar_img(post.user.avatar_template, "tiny"),
avatar: PrettyText.avatar_img(post.user.avatar_template_url, "tiny"),
original_url: url,
title: PrettyText.unescape_emoji(CGI::escapeHTML(topic.title)),
category_html: CategoryBadge.html_for(topic.category),