mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Broken acceptance test
This commit is contained in:
@@ -23,7 +23,9 @@ export function translateResults(results, opts) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
results.posts = results.posts.map(post => {
|
results.posts = results.posts.map(post => {
|
||||||
post.userPath = Discourse.getURL(`/users/${post.username.toLowerCase()}`);
|
if (post.username) {
|
||||||
|
post.userPath = Discourse.getURL(`/users/${post.username.toLowerCase()}`);
|
||||||
|
}
|
||||||
post = Post.create(post);
|
post = Post.create(post);
|
||||||
post.set('topic', topicMap[post.topic_id]);
|
post.set('topic', topicMap[post.topic_id]);
|
||||||
return post;
|
return post;
|
||||||
|
|||||||
Reference in New Issue
Block a user