Skip to content
Snippets Groups Projects
Commit 144d4189 authored by pabois's avatar pabois
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 77e4b4d9 387b60a6
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,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