diff --git a/app/models/communication/website/imported/page.rb b/app/models/communication/website/imported/page.rb index ce4bc3901fc04f493eb1ef157631aff80416f5c2..59399aac8161637d892632df9ec91c8437a7699d 100644 --- a/app/models/communication/website/imported/page.rb +++ b/app/models/communication/website/imported/page.rb @@ -85,6 +85,7 @@ class Communication::Website::Imported::Page < ApplicationRecord page.title = Wordpress.clean title.to_s page.description = ActionView::Base.full_sanitizer.sanitize excerpt.to_s page.text = Wordpress.clean content.to_s + page.published = true page.save end end diff --git a/app/models/communication/website/imported/post.rb b/app/models/communication/website/imported/post.rb index 571e679397cff10f00c818e874e2c04051fa4fec..c9feebd09270d45eb7df29335d74270a7924e8f0 100644 --- a/app/models/communication/website/imported/post.rb +++ b/app/models/communication/website/imported/post.rb @@ -89,6 +89,7 @@ class Communication::Website::Imported::Post < ApplicationRecord post.created_at = created_at post.updated_at = updated_at post.published_at = published_at if published_at + post.published = true post.save end end