From d7fc7cf2f5e9c11a401ee34ed498bca762c72b79 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 18 Dec 2019 22:14:02 +0000 Subject: Add reply links on thread page --- mastodon/status.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'mastodon') 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. -- cgit v1.2.3