app/models/landable/page.rb in landable-1.12.1 vs app/models/landable/page.rb in landable-1.12.2

- old
+ new

@@ -40,10 +40,11 @@ has_many :audits, class_name: 'Landable::Audit', as: :auditable delegate :republish!, to: :published_revision scope :imported, -> { where("imported_at IS NOT NULL") } - scope :sitemappable, -> { where("COALESCE(meta_tags -> 'robots' NOT LIKE '%noindex%', TRUE)") + scope :sitemappable, -> { where("COALESCE(meta_tags -> 'robots' NOT LIKE '%noindex%', TRUE)") + .where("published_revision_id is NOT NULL") .where(status_code: 200)} scope :published, -> { where("published_revision_id is NOT NULL") } before_validation :downcase_path!