mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 15:25:34 +08:00
FIX: Broken acceptance test
This commit is contained in:
parent
414388b94f
commit
8f19f60588
@ -23,7 +23,9 @@ export function translateResults(results, opts) {
|
||||
});
|
||||
|
||||
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.set('topic', topicMap[post.topic_id]);
|
||||
return post;
|
||||
|
Loading…
x
Reference in New Issue
Block a user