diff --git a/app/presenters/content_item/political.rb b/app/presenters/content_item/political.rb index 14282537e..3f3e8d70a 100644 --- a/app/presenters/content_item/political.rb +++ b/app/presenters/content_item/political.rb @@ -15,7 +15,14 @@ def political? end def historical? - content_item["details"].include?("government") && !content_item["details"]["government"]["current"] + government_current = content_item.dig( + "links", "government", 0, "details", "current" + ) + + # Treat no government as not historical + return false if government_current.nil? + + !government_current end end end