mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-09-11 19:05:36 -05:00
Fixed admin console trying to load user's as a community
This commit is contained in:
committed by
Jay Poffinbarger
parent
bef0d507bc
commit
9a7ccd2d3c
1892
package-lock.json
generated
1892
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -108,7 +108,7 @@ router.get('/communities', upload.none(), function (req, res) {
|
||||
}
|
||||
let user = await database.getUserByPID(pid);
|
||||
let communities = await database.getCommunities(100)
|
||||
console.log(communities[0].name)
|
||||
|
||||
res.render('admin/admin_communities.ejs', {
|
||||
user: user,
|
||||
communities: communities,
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<th onClick="sortTable(2)">Followers</th>
|
||||
</tr>
|
||||
<% for(var i = 0; i < users.length; i++) { %>
|
||||
<tr id="<%= users[i].community_id %>" onclick="location.assign('/communities/' + this.id)">
|
||||
<tr id="<%= users[i].pid %>" onclick="location.assign('/users/' + this.id)">
|
||||
<td><img style="width: 80px " src="<%= users[i].pfp_uri %>"></img></td>
|
||||
<td><a><%= users[i].user_id %></a></td>
|
||||
<td><%= moment(users[i].created_at).fromNow() %></td>
|
||||
|
||||
Reference in New Issue
Block a user