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

comment

parent 977be01e
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,8 @@ class Communication::Website::Imported::Post < ApplicationRecord
self.post.title = "Untitled" # No title yet
self.post.save
else
# Continue only if there are remote changes
# Continue only if there are remote changes, and no recent local changes
# updated_at reflects last update on wordpress, based on the last import
# 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
......
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