diff --git a/app/helpers/admin/application_helper.rb b/app/helpers/admin/application_helper.rb index e811cd41fc52aeb325cfe463c9a190f57c9e5d7a..ef3653dcfea075713f8c1fdc68c417fd789e2635 100644 --- a/app/helpers/admin/application_helper.rb +++ b/app/helpers/admin/application_helper.rb @@ -63,7 +63,7 @@ module Admin::ApplicationHelper def prepare_for_github(html) sanitize html.to_s, tags: %w(table a figure img figcaption i em b strong h2 h3 h4 h5 h6 blockquote), - attributes: %w(href alt title target rel src srcset) + attributes: %w(href alt title target rel src srcset width height) end private diff --git a/app/models/communication/website/imported/page.rb b/app/models/communication/website/imported/page.rb index 25f6fb93eedc267fe7c9ddb5eec79baa08f5a721..ce4bc3901fc04f493eb1ef157631aff80416f5c2 100644 --- a/app/models/communication/website/imported/page.rb +++ b/app/models/communication/website/imported/page.rb @@ -79,7 +79,7 @@ class Communication::Website::Imported::Page < ApplicationRecord # Don't touch if there are local changes (this would destroy some nice work) return if page.updated_at > updated_at # Don't touch if there are no remote changes (this would do useless server workload) - return if page.updated_at == updated_at + # return if page.updated_at == updated_at puts "Update page #{page.id}" page.slug = slug page.title = Wordpress.clean title.to_s diff --git a/app/models/communication/website/imported/post.rb b/app/models/communication/website/imported/post.rb index cc075e6444373a1bff710388a3dba9d175b89b8d..571e679397cff10f00c818e874e2c04051fa4fec 100644 --- a/app/models/communication/website/imported/post.rb +++ b/app/models/communication/website/imported/post.rb @@ -79,7 +79,7 @@ class Communication::Website::Imported::Post < ApplicationRecord # Don't touch if there are local changes (this would destroy some nice work) return if post.updated_at > updated_at # Don't touch if there are no remote changes (this would do useless server workload) - return if post.updated_at == updated_at + # return if post.updated_at == updated_at title = Wordpress.clean title.to_s puts "Update post #{post.id}" post.title = title unless title.blank? # If there is no title, leave it with "Untitled"