Fixed revision creation for new posts

We had incorrectly ported the existing functionality and started adding 2
revisions for each new post. This fixes the logic to only add 1.
This commit is contained in:
Fabien "egg" O'Carroll 2023-04-17 16:48:25 +01:00
parent c2f14ccd82
commit ff082c1934

View File

@ -53,7 +53,6 @@ class PostRevisions {
if (revisions.length === 0) {
return [
this.convertPostLikeToRevision(previous, 1),
currentRevision
];
}