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:17:59 +0000
commit816281c225e1d07602aa4f6d87d5ffbbc8dfbb7a (patch)
treed510fc30cdd5642cf715f213f1c5e4bb74dc6b35 /renderer
parent6340b60d8cdc522e7a3b0720d935922bce059748 (diff)
downloadbloat-816281c225e1d07602aa4f6d87d5ffbbc8dfbb7a.tar.gz
bloat-816281c225e1d07602aa4f6d87d5ffbbc8dfbb7a.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 2e6c40f..4d09338 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 NotificationData struct {
*CommonData
Notifications []*mastodon.Notification
diff --git a/renderer/renderer.go b/renderer/renderer.go
index 067632f..ec328dc 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"
NotificationPage = "notification.tmpl"
UserPage = "user.tmpl"
UserSearchPage = "usersearch.tmpl"