aboutsummaryrefslogtreecommitdiff
path: root/mastodon
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-18 22:14:02 +0000
committerr <r@freesoftwareextremist.com>2019-12-18 22:14:02 +0000
commitd7fc7cf2f5e9c11a401ee34ed498bca762c72b79 (patch)
treece0558257067eaf737c6fbcef1de8fef78c127fd /mastodon
parente3565202903a051b19aa76b81a0b5f9f3fdea996 (diff)
downloadbloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.tar.gz
bloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.zip
Add reply links on thread page
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/status.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/mastodon/status.go b/mastodon/status.go
index b6110d5..9f029d1 100644
--- a/mastodon/status.go
+++ b/mastodon/status.go
@@ -10,6 +10,15 @@ import (
"time"
)
+type StatusPleroma struct {
+ InReplyToAccountAcct string `json:"in_reply_to_account_acct"`
+}
+
+type ReplyInfo struct {
+ ID string `json:"id"`
+ Number int `json:"number"`
+}
+
// Status is struct to hold status.
type Status struct {
ID string `json:"id"`
@@ -38,6 +47,13 @@ type Status struct {
Application Application `json:"application"`
Language string `json:"language"`
Pinned interface{} `json:"pinned"`
+
+ // Custom fields
+ Pleroma StatusPleroma `json:"pleroma"`
+ HideAccountInfo bool `json:"hide_account_info"`
+ ShowReplies bool `json:"show_replies"`
+ ReplyMap map[string][]ReplyInfo `json:"reply_map"`
+ ReplyNumber int `json:"reply_number"`
}
// Context hold information for mastodon context.