mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
publish: ignore edit updates if they originated with us
This commit is contained in:
parent
7edcd65699
commit
78023b8eff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user