mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
closes #5977
This commit is contained in:
@@ -227,6 +227,8 @@ function addTags(topicData, req, res) {
|
|||||||
var ogImageUrl = '';
|
var ogImageUrl = '';
|
||||||
if (topicData.thumb) {
|
if (topicData.thumb) {
|
||||||
ogImageUrl = 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) {
|
} else if (postAtIndex && postAtIndex.user && postAtIndex.user.picture) {
|
||||||
ogImageUrl = postAtIndex.user.picture;
|
ogImageUrl = postAtIndex.user.picture;
|
||||||
} else if (meta.config['og:image']) {
|
} else if (meta.config['og:image']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user