Printers: Add Relationship.showing_reblogs
authorMikael Berthe <mikael@lilotux.net>
Wed, 21 Mar 2018 00:42:51 +0100
changeset 206 102b34bb2c28
parent 205 60f4c2acedfd
child 207 56afbe03a7d4
Printers: Add Relationship.showing_reblogs Commented for now since it seems buggy with Mastodon 2.2...
printer/plainprinter.go
templates/themes/ansi-dark/relationship.tmpl
templates/themes/ansi/relationship.tmpl
--- 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}}