diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-05-09 09:48:09 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:23 -0500 |
commit | 976ec97ffeafc491ac89df461788bb4338f243d8 (patch) | |
tree | c3438d250d0a40325790f414c1cfc95b3f8b972c /app/lib | |
parent | e85b8af05183d1048adc4a39bc3d975af153463d (diff) |
Bangtags: do not assume `status.in_reply_to_id` exists just because `status.reply?` is `true`.
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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'], |