working on users having multiple profiles

This commit is contained in:
Adolfo Reyna
2021-08-17 11:28:45 -07:00
parent f909233533
commit 416c14d03b
9 changed files with 84 additions and 48 deletions

View File

@@ -7,7 +7,8 @@ class Post {
this.reactions = info.reactions || {};
this.comments = info.comments || [];
//This should record edits
this.contentHistory = info.contentHistory || [];
this.contentHistory = info.contentHistory || [];
this.toUser = info.toUser || '';
// Any reaction or comment updates this ts,
// this will be used as index to query new posts
this.lastUpdated = info.lastUpdated || this.createdAt;
@@ -38,6 +39,7 @@ class Post {
r.comments = this.comments;
r.contentHistory = this.contentHistory;
r.lastUpdated = this.lastUpdated;
r.toUser = this.toUser;
return r;
}
}