# HG changeset patch # User Mikael Berthe # Date 1494095123 -7200 # Node ID 23b2b6c5643e2c2384e88e30ac74c2e92115200d # Parent f155f9d86832d4a61c07fd71ea33a189cf714dbb PlainPrinter: Display when 'sensitive' (aka NSFW) is set diff -r f155f9d86832 -r 23b2b6c5643e 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)