aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-09-05 17:17:59 +0000
committerr <r@freesoftwareextremist.com>2021-09-05 17:33:58 +0000
commit54c42455f393c5ae8ebdb19884d40ebd9a18f755 (patch)
treedeecf729e7ba3565058dca6678e2b78805206097 /renderer
parent4351155f67963b58feeba0d16bb998862ceb4d69 (diff)
downloadbloat-54c42455f393c5ae8ebdb19884d40ebd9a18f755.tar.gz
bloat-54c42455f393c5ae8ebdb19884d40ebd9a18f755.zip
Add quick reply
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go7
-rw-r--r--renderer/renderer.go1
2 files changed, 8 insertions, 0 deletions
diff --git a/renderer/model.go b/renderer/model.go
index 4d3eea0..385ac7c 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -69,6 +69,13 @@ type ThreadData struct {
ReplyMap map[string][]mastodon.ReplyInfo
}
+type QuickReplyData struct {
+ *CommonData
+ Ancestor *mastodon.Status
+ Status *mastodon.Status
+ PostContext model.PostContext
+}
+
type StatusData struct {
*CommonData
Status *mastodon.Status
diff --git a/renderer/renderer.go b/renderer/renderer.go
index 340b0fc..6c9877a 100644
--- a/renderer/renderer.go
+++ b/renderer/renderer.go
@@ -20,6 +20,7 @@ const (
RootPage = "root.tmpl"
TimelinePage = "timeline.tmpl"
ThreadPage = "thread.tmpl"
+ QuickReplyPage = "quickreply.tmpl"
StatusPopup = "status.tmpl"
NotificationPage = "notification.tmpl"
UserPage = "user.tmpl"