# HG changeset patch # User Mikael Berthe # Date 1521589371 -3600 # Node ID 102b34bb2c287c202ebd726ca9a23a08cd80ca46 # Parent 60f4c2acedfd591ab0d5203928b19e2182ea3abe Printers: Add Relationship.showing_reblogs Commented for now since it seems buggy with Mastodon 2.2... diff -r 60f4c2acedfd -r 102b34bb2c28 printer/plainprinter.go --- 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) diff -r 60f4c2acedfd -r 102b34bb2c28 templates/themes/ansi-dark/relationship.tmpl --- 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}} diff -r 60f4c2acedfd -r 102b34bb2c28 templates/themes/ansi/relationship.tmpl --- 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}}