From 802a1eb8e76ba6b804636ab279cc45744406ddae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Paraniak?= Date: Thu, 5 Dec 2024 13:34:53 +0800 Subject: [PATCH] channels: fix v8 v-channel migration --- desk/lib/channel-utils.hoon | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/desk/lib/channel-utils.hoon b/desk/lib/channel-utils.hoon index 450d8ea9e5..b9a7f82d59 100644 --- a/desk/lib/channel-utils.hoon +++ b/desk/lib/channel-utils.hoon @@ -1067,12 +1067,24 @@ (log-7-to-8 log.v) =/ [count=@ud =v-posts:c] (v-posts-7-to-8 posts.v mod) - %* . *v-channel:c - count count - posts v-posts + :: + =- %= w - :: change local in w + :* posts.w + count + order.w + view.w + sort.w + perm.w + *(rev:c (unit @t)) :: meta + == + == + ^= w + %= v + :: global + posts v-posts + :: local log log future (future-8 log) - perm perm.v == ++ v-posts-7-to-8 |= [vp=v-posts:v7:old:c mod=(map id-post:c time)]