From 976ec97ffeafc491ac89df461788bb4338f243d8 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 9 May 2019 09:48:09 -0500 Subject: Bangtags: do not assume `status.in_reply_to_id` exists just because `status.reply?` is `true`. --- app/lib/bangtags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index 01ad38f61..d7a39710b 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -6,7 +6,7 @@ class Bangtags def initialize(status) @status = status @account = status.account - @parent_status = Status.find(status.in_reply_to_id) if status.reply? + @parent_status = Status.find(status.in_reply_to_id) if status.in_reply_to_id @prefix_ns = { 'permalink' => ['link'], -- cgit