mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
merge master
This commit is contained in:
@@ -22,6 +22,8 @@ const Comment = {
|
||||
});
|
||||
},
|
||||
replyCount({id}, {excludeIgnored}, {user, loaders: {Comments}}) {
|
||||
|
||||
// TODO: remove
|
||||
if (user && excludeIgnored) {
|
||||
return Comments.countByParentIDPersonalized({id, excludeIgnored});
|
||||
}
|
||||
@@ -44,6 +46,12 @@ const Comment = {
|
||||
},
|
||||
asset({asset_id}, _, {loaders: {Assets}}) {
|
||||
return Assets.getByID.load(asset_id);
|
||||
},
|
||||
editing(comment) {
|
||||
return {
|
||||
edited: comment.edited,
|
||||
editableUntil: comment.editableUntil
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user