get third party user for posts

This commit is contained in:
Daniel Lugo 2020-06-28 06:15:17 -04:00
parent 8d3255eb5a
commit 5cce69fb75

View file

@ -107,8 +107,11 @@ const getWallPage = async (page, publicKey) => {
delete clean.posts[key]
clean.count--
} else {
// eslint-disable-next-line no-await-in-loop
post.author = await Wall.getMyUser()
post.author = publicKey
? // eslint-disable-next-line no-await-in-loop
await Wall.getAnUser(publicKey)
: // eslint-disable-next-line no-await-in-loop
await Wall.getMyUser()
post.id = key
}
}