printer/plainprinter.go
changeset 172 0d651f070319
parent 162 3118ab97c8df
child 185 564d92b54b00
--- a/printer/plainprinter.go	Sat Oct 21 19:06:26 2017 +0200
+++ b/printer/plainprinter.go	Sat Oct 21 19:12:11 2017 +0200
@@ -295,8 +295,8 @@
 	}
 
 	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)
+	if s.InReplyToID != nil && *s.InReplyToID > 0 {
+		indentedPrint(w, indent, false, false, "In-Reply-To", "%d", *s.InReplyToID)
 	}
 	if s.Reblogged {
 		indentedPrint(w, indent, false, false, "Reblogged", "%v", s.Reblogged)