From 87e9e9d43703790318991f189eb2a812b306ef9a Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 27 Jun 2013 16:32:03 +1000 Subject: [PATCH] fix broken link for admin user in flags --- app/assets/javascripts/admin/models/flagged_post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/models/flagged_post.js b/app/assets/javascripts/admin/models/flagged_post.js index ac34445707f..0c4c7bd85de 100644 --- a/app/assets/javascripts/admin/models/flagged_post.js +++ b/app/assets/javascripts/admin/models/flagged_post.js @@ -104,7 +104,7 @@ Discourse.FlaggedPost.reopenClass({ Discourse.ajax('/admin/flags/' + filter + '.json').then(function(data) { var userLookup = {}; _.each(data.users,function(user) { - userLookup[user.id] = Discourse.User.create(user); + userLookup[user.id] = Discourse.AdminUser.create(user); }); _.each(data.posts,function(post) { var f = Discourse.FlaggedPost.create(post);