Printers: Add Relationship.showing_reblogs
Commented for now since it seems buggy with Mastodon 2.2...
--- a/printer/plainprinter.go Wed Mar 21 00:42:51 2018 +0100
+++ b/printer/plainprinter.go Wed Mar 21 00:42:51 2018 +0100
@@ -273,6 +273,7 @@
func (p *PlainPrinter) plainPrintRelationship(r *madon.Relationship, w io.Writer, indent string) error {
indentedPrint(w, indent, true, false, "Account ID", "%d", r.ID)
indentedPrint(w, indent, false, false, "Following", "%v", r.Following)
+ //indentedPrint(w, indent, false, false, "Showing reblogs", "%v", r.ShowingReblogs)
indentedPrint(w, indent, false, false, "Followed-by", "%v", r.FollowedBy)
indentedPrint(w, indent, false, false, "Blocking", "%v", r.Blocking)
indentedPrint(w, indent, false, false, "Muting", "%v", r.Muting)
--- a/templates/themes/ansi-dark/relationship.tmpl Wed Mar 21 00:42:51 2018 +0100
+++ b/templates/themes/ansi-dark/relationship.tmpl Wed Mar 21 00:42:51 2018 +0100
@@ -1,5 +1,6 @@
- Account ID: {{color "red"}}{{.id}}{{color "reset"}}
Following: {{.following}}
+{{- if .showing_reblogs}} Showing boosts: {{.showing_reblogs}}{{end}}
Followed-by: {{.followed_by}}
Blocking: {{.blocking}}
Muting: {{.muting}}
--- a/templates/themes/ansi/relationship.tmpl Wed Mar 21 00:42:51 2018 +0100
+++ b/templates/themes/ansi/relationship.tmpl Wed Mar 21 00:42:51 2018 +0100
@@ -1,5 +1,6 @@
- Account ID: {{color "red"}}{{.id}}{{color "reset"}}
Following: {{.following}}
+{{- if .showing_reblogs}} Showing boosts: {{.showing_reblogs}}{{end}}
Followed-by: {{.followed_by}}
Blocking: {{.blocking}}
Muting: {{.muting}}