From 5282d19b553d89009b214ba144fb8e8a85b4e631 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 4 Sep 2023 17:12:32 +0000 Subject: [PATCH] Structure replies to issues as replies so that their posts don't appear so unusual. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4443 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/issues/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/issues/script.js b/apps/issues/script.js index 962c4c1a2..59707e0c5 100644 --- a/apps/issues/script.js +++ b/apps/issues/script.js @@ -154,7 +154,7 @@ class TfIssuesAppElement extends LitElement { this.selected = issue}> ${issue.text.split('\n')?.[0]} - ${new Date(issue.created).toLocaleDateString()} + ${new Date(issue.updated ?? issue.created).toLocaleDateString()} `; } @@ -206,6 +206,8 @@ class TfIssuesAppElement extends LitElement { await tfrpc.rpc.appendMessage(whoami, { type: 'post', text: event.detail.value, + root: this.selected.id, + branch: this.selected.updates.length ? this.selected.updates[this.selected.updates.length - 1].id : this.selected.id, issues: [ { link: this.selected.id,