Find correct owner

pull/73/head
MillenniumEarl 2021-03-03 11:43:17 +01:00
parent 2d7c98f685
commit 52131a143b
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ export default class Post {
this._lastEdit = new Date(sLastEdit); this._lastEdit = new Date(sLastEdit);
// Find post's owner // Find post's owner
this._owner = new PlatformUser(0); const sOwnerID: string = post.find(POST.OWNER_ID).attr("data-user-id").trim();
this._owner = new PlatformUser(parseInt(sOwnerID));
await this._owner.fetch(); await this._owner.fetch();
// Find if the post is bookmarked // Find if the post is bookmarked