Skip to content
Snippets Groups Projects
Unverified Commit 0c00e72c authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

refactor

parent f5cb80f8
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ gem 'bootstrap5-kaminari-views'
gem 'octokit'
gem 'front_matter_parser'
gem 'two_factor_authentication', git: 'https://github.com/noesya/two_factor_authentication.git'
# gem 'two_factor_authentication', path: '../two_factor_authentication'
# Front
gem 'jquery-rails'
......
......@@ -76,10 +76,10 @@ class Communication::Website::Imported::Post < ApplicationRecord
self.post.title = "Untitled" # No title yet
self.post.save
else
# 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
# Continue only if there are remote changes
# Don't touch if there are local changes (post.updated_at > updated_at)
# Don't touch if there are no remote changes (post.updated_at == updated_at)
# return unless updated_at > post.updated_at
end
puts "Update post #{post.id}"
sanitized_title = Wordpress.clean self.title.to_s
......
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