Skip to content
Snippets Groups Projects
Commit f90e3772 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

regenerate everything

parent 19ba18d1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment