PlainPrinter: Display when 'sensitive' (aka NSFW) is set
authorMikael Berthe <mikael@lilotux.net>
Sat, 06 May 2017 20:25:23 +0200
changeset 77 23b2b6c5643e
parent 76 f155f9d86832
child 78 b40bc3a8b572
PlainPrinter: Display when 'sensitive' (aka NSFW) is set
printer/plain.go
--- a/printer/plain.go	Sat May 06 19:52:39 2017 +0200
+++ b/printer/plain.go	Sat May 06 20:25:23 2017 +0200
@@ -270,6 +270,10 @@
 		return p.plainPrintStatus(s.Reblog, w, indent+p.Indent)
 	}
 
+	if s.Sensitive {
+		indentedPrint(w, indent, false, false, "Sensitive (NSFW)", "%v", s.Sensitive)
+	}
+
 	indentedPrint(w, indent, false, false, "Contents", "%s", html2string(s.Content))
 	if s.InReplyToID > 0 {
 		indentedPrint(w, indent, false, false, "In-Reply-To", "%d", s.InReplyToID)