mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Publishing should update the public_version too
This commit is contained in:
parent
09b9b56091
commit
d4296f33ff
@ -30,6 +30,7 @@ class TopicPublisher
|
|||||||
if op.present?
|
if op.present?
|
||||||
op.revisions.delete_all
|
op.revisions.delete_all
|
||||||
op.update_column(:version, 1)
|
op.update_column(:version, 1)
|
||||||
|
op.update_column(:public_version, 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ describe TopicPublisher do
|
|||||||
# Should delete any edits on the OP
|
# Should delete any edits on the OP
|
||||||
expect(op.revisions.size).to eq(0)
|
expect(op.revisions.size).to eq(0)
|
||||||
expect(op.version).to eq(1)
|
expect(op.version).to eq(1)
|
||||||
|
expect(op.public_version).to eq(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user