working on users having multiple profiles
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user