fix author field on topic feed #2872

This commit is contained in:
Barış Soner Uşaklı
2015-03-17 13:21:27 -04:00
parent 839dd72a05
commit e45e204ba5

View File

@@ -84,8 +84,8 @@ function generateForTopic(req, res, next) {
feed.item({
title: 'Reply to ' + topicData.title + ' on ' + dateStamp,
description: postData.content,
url: nconf.get('url') + '/topic/' + topicData.slug + '/' + postData.index,
author: postData.username,
url: nconf.get('url') + '/topic/' + topicData.slug + (postData.index ? '/' + (postData.index + 1) : ''),
author: postData.user ? postData.user.username : '',
date: dateStamp
});
}