From 78023b8efff6eacdf73283dd5192f1a007e82a1a Mon Sep 17 00:00:00 2001 From: Isaac Visintainer Date: Mon, 13 Apr 2020 13:34:50 -0700 Subject: [PATCH] publish: ignore edit updates if they originated with us --- pkg/arvo/app/publish.hoon | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/arvo/app/publish.hoon b/pkg/arvo/app/publish.hoon index 018ff4b3a..857d578b3 100644 --- a/pkg/arvo/app/publish.hoon +++ b/pkg/arvo/app/publish.hoon @@ -1913,6 +1913,8 @@ =/ old-note (~(get by notes.u.book) note.del) ?~ old-note [~ sty] + ?: =(our.bol author.u.old-note) + [~ sty] =/ new-note=note %= data.del date-created date-created.u.old-note @@ -1933,6 +1935,11 @@ =/ note (~(get by notes.u.book) note.del) ?~ note [~ sty] + =/ old-comment (~(get by comments.u.note) comment-date.del) + ?~ old-comment + [~ sty] + ?: =(our.bol author.u.old-comment) + [~ sty] =. comments.u.note (~(put by comments.u.note) comment-date.del data.del) =. notes.u.book (~(put by notes.u.book) note.del u.note) (emit-updates-and-state host.del book.del u.book del sty)