diff --git a/src/controllers/topics.js b/src/controllers/topics.js index 347ae8e847..d3a4846390 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -227,6 +227,8 @@ function addTags(topicData, req, res) { var ogImageUrl = ''; if (topicData.thumb) { ogImageUrl = topicData.thumb; + } else if (topicData.category.backgroundImage && (!postAtIndex || !postAtIndex.index)) { + ogImageUrl = topicData.category.backgroundImage; } else if (postAtIndex && postAtIndex.user && postAtIndex.user.picture) { ogImageUrl = postAtIndex.user.picture; } else if (meta.config['og:image']) {