--- 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)