From 486f343b09b970b444d1aef12634e392754fd787 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 6 Aug 2019 11:19:33 +0100 Subject: [PATCH] FIX: Include previously solved topics in auto-bump Null values can happen when a post is removed as the solution. We already filter for NOT NULL in the topic_query and search filters. This commit adds the same logic to the auto-bump filter. --- plugin.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin.rb b/plugin.rb index c57d2cc..fa7fdba 100644 --- a/plugin.rb +++ b/plugin.rb @@ -545,6 +545,7 @@ SQL SELECT 1 FROM topic_custom_fields WHERE topic_id = topics.id AND name = 'accepted_answer_post_id' + AND value IS NOT NULL ) SQL })