Skip to content

Commit

Permalink
channels: make reply scry response match mark type
Browse files Browse the repository at this point in the history
Scrying for a reply message would produce a noun marked with the
%channel-reply mark, but the noun itself wouldn't nest in the type of
that mark.

Here, we add a cast to the appropriate type, and "unversion" the reply
noun that was being produced to coerce it into the correct shape.

Resolves LAND-1531.
  • Loading branch information
Fang- committed Feb 9, 2024
1 parent e332602 commit 4688c61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions desk/app/channels.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@
=/ =rope:ha (ca-rope -.kind-data.post id-post ~)
?: (was-mentioned:utils content.post our.bowl)
?. (want-hark %mention)
ca-core
ca-core
=/ cs=(list content:ha)
~[[%ship author.post] ' mentioned you: ' (flatten:utils content.post)]
(emit (pass-hark (ca-spin rope cs ~)))
Expand Down Expand Up @@ -1369,11 +1369,11 @@
=/ post (get:on posts.channel `@da`time)
?~ post ~
?~ u.post `~
(ca-peek-replies replies.u.u.post rest.pole)
(ca-peek-replies id.u.u.post replies.u.u.post rest.pole)
==
::
++ ca-peek-replies
|= [replies=v-replies:c =(pole knot)]
|= [parent-id=id-post:c replies=v-replies:c =(pole knot)]
^- (unit (unit cage))
=* on on-v-replies:c
?+ pole [~ ~]
Expand All @@ -1397,7 +1397,7 @@
=/ reply (get:on-v-replies:c replies `@da`time)
?~ reply ~
?~ u.reply `~
``channel-reply+!>(u.u.reply)
``channel-reply+!>(`reply:c`(uv-reply:utils parent-id u.u.reply))
==
::
++ ca-search
Expand Down

0 comments on commit 4688c61

Please sign in to comment.