Commit 33ede12d authored by Andy Trevorah's avatar Andy Trevorah Committed by Andrew Newdigate

fixed undefined slugs in topic emails. closes #2372

parent 4fd05dad
......@@ -21,7 +21,7 @@ AggregatedCommentStrategy.prototype = {
editedAt: reply.editedAt,
// TODO: permalink?
uri: owningForum.uri + '/topic/' + owningTopicId + '/' + reply.slug
uri: owningForum.uri + '/topic/' + owningTopicId + '/' + owningTopic.slug
};
},
......
......@@ -26,7 +26,7 @@ AggregatedReplyStrategy.prototype = {
lastModified: reply.lastModified,
// TODO: permalink?
uri: owningForum.uri + '/topic/' + owningTopicId + '/' + reply.slug
uri: owningForum.uri + '/topic/' + owningTopicId + '/' + owningTopic.slug
};
},
......
......@@ -54,7 +54,7 @@ describe('aggregated-comment-strategy', function() {
body: {},
sent: "2014-02-01T00:00:00.000Z",
editedAt: null,
uri: forum.uri + "/topic/" + topic._id + "/undefined"
uri: forum.uri + "/topic/" + topic._id + "/" + topic.slug
});
});
......
......@@ -49,7 +49,7 @@ describe('aggregated-reply-strategy', function() {
editedAt: null,
lastChanged: "2014-02-01T00:00:00.000Z",
lastModified: "2014-02-01T00:00:00.000Z",
uri: forum.uri + "/topic/" + topic._id + "/undefined"
uri: forum.uri + "/topic/" + topic._id + "/" + topic.slug
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment