fixes #1162
This commit is contained in:
@@ -84,12 +84,15 @@ class PostVersion < ActiveRecord::Base
|
||||
old_tags << "source:#{version.source}" if version.source.present?
|
||||
end
|
||||
|
||||
added_tags = new_tags - old_tags
|
||||
removed_tags = old_tags - new_tags
|
||||
|
||||
return {
|
||||
:added_tags => new_tags - old_tags,
|
||||
:removed_tags => old_tags - new_tags,
|
||||
:added_tags => added_tags & latest_tags,
|
||||
:removed_tags => removed_tags - latest_tags,
|
||||
:obsolete_added_tags => added_tags - latest_tags,
|
||||
:obsolete_removed_tags => removed_tags & latest_tags,
|
||||
:unchanged_tags => new_tags & old_tags,
|
||||
:obsolete_added_tags => new_tags - latest_tags,
|
||||
:obsolete_removed_tags => old_tags & latest_tags,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user