From 53b54eb076246ffeb6c5c4e8b52a643696195333 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 5 Feb 2023 16:23:21 -0500 Subject: Implement recursive commenting and sorting by number of likes --- demo/components/like-button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demo/components/like-button.js') diff --git a/demo/components/like-button.js b/demo/components/like-button.js index 5c9b1a5..6f65ac6 100644 --- a/demo/components/like-button.js +++ b/demo/components/like-button.js @@ -1,6 +1,6 @@ export default { - props: ['messageID'], + props: ['messageID', 'parent'], methods: { likeObjects(objects, messageID=this.messageID) { @@ -20,7 +20,7 @@ export default { this.$graffitiUpdate({ like: this.messageID, timestamp: Date.now(), - _tags: [this.messageID] + _tags: [this.messageID, this.parent] }) } } -- cgit v1.2.3-70-g09d2