Skip to content
Permalink
Browse files

fix: user urls in subfolder install

fix missing await
  • Loading branch information...
barisusakli committed Jul 23, 2019
1 parent 54b87fd commit 6a486e35bbbd11b710c90df484924ae3aea9fd33
Showing with 3 additions and 4 deletions.
  1. +1 −2 src/user/approval.js
  2. +1 −1 src/views/admin/manage/post-queue.tpl
  3. +1 −1 src/views/admin/manage/registration.tpl
@@ -137,7 +137,6 @@ module.exports = function (User) {

async function getIPMatchedUsers(user) {
const uids = await User.getUidsFromSet('ip:' + user.ip + ':uid', 0, -1);
const data = User.getUsersFields(uids, ['uid', 'username', 'picture']);
user.ipMatch = data;
user.ipMatch = await User.getUsersFields(uids, ['uid', 'username', 'picture']);
}
};
@@ -28,7 +28,7 @@
<tr data-id="{posts.id}">
<td class="col-md-1">
<!-- IF posts.user.userslug -->
<a href="/uid/{posts.user.uid}">{posts.user.username}</a>
<a href="{config.relative_path}/uid/{posts.user.uid}">{posts.user.username}</a>
<!-- ELSE -->
{posts.user.username}
<!-- ENDIF posts.user.userslug -->
@@ -62,7 +62,7 @@
<!-- ELSE -->
<div class="user-img avatar avatar-sm" style="background-color: {users.ipMatch.icon:bgColor};">{users.ipMatch.icon:text}</div>
<!-- ENDIF users.ipMatch.picture -->
<a href="/uid/{users.ipMatch.uid}">{users.ipMatch.username}</a>
<a href="{config.relative_path}/uid/{users.ipMatch.uid}">{users.ipMatch.username}</a>
<!-- END users.ipMatch -->
</td>
<td class="hidden-xs">

0 comments on commit 6a486e3

Please sign in to comment.
You can’t perform that action at this time.