Skip to content

Commit

Permalink
Fix feed username bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Apr 12, 2022
1 parent 8292db3 commit 35c5a87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,13 @@ export class Database {
.orderBy('posts.tid', 'desc')
.limit(count)

console.log('FEED: ', feed)

return Promise.all(
feed.map(async (p) => ({
tid: p.tid,
author: p.author,
author_name: `${p.username}@${p.host}`,
author_name: username,
text: p.text,
time: p.time,
likes: await this.likeCount(p.author, p.namespace, p.tid),
Expand Down

0 comments on commit 35c5a87

Please sign in to comment.