diff options
author | polwex <polwex@sortug.com> | 2025-08-29 02:23:45 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-08-29 02:23:45 +0700 |
commit | 69c58f1afd388ca33565a9228221daf30d13398b (patch) | |
tree | 072d0a762488ff7107452e5a21e73398af6842d7 /desk/sur | |
parent | bdb1eceba469206381a8fc50a0b62df41c19af8d (diff) |
Diffstat (limited to 'desk/sur')
-rw-r--r-- | desk/sur/nostril.hoon | 3 | ||||
-rw-r--r-- | desk/sur/post.hoon | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/desk/sur/nostril.hoon b/desk/sur/nostril.hoon index 87f6611..b22ac10 100644 --- a/desk/sur/nostril.hoon +++ b/desk/sur/nostril.hoon @@ -11,10 +11,11 @@ :: feeds own=feed:feed following=(map @ux [profile=user-meta =feed:feed]) - follow-graph=(map @ux (set [pubkey=@ux name=@t relay=(unit @t)])) + follow-graph=(map @ux (set follow)) :: TODO global feed somehow? == ++$ follow [pubkey=@ux name=@t relay=(unit @t)] +$ keys [pub=@ priv=@] ++ default ^- state-0 =/ s *state-0 s(relays (silt ~['wss://relay.damus.io' 'wss://nos.lol'])) :: NOSTR structs diff --git a/desk/sur/post.hoon b/desk/sur/post.hoon index 75f2aa3..2fa3585 100644 --- a/desk/sur/post.hoon +++ b/desk/sur/post.hoon @@ -72,16 +72,17 @@ +$ content-map ((mop time content-list) gth) ++ corm ((on time content-list) gth) -+$ content-list contents:contents-1 +:: +$ content-list contents:contents-1 ++$ content-list contents +$ li content-list -++ contents-1 -|% +$ contents (list block) ++$ paragraph (list inline) ++$ heading $?(%h1 %h2 %h3 %h4 %h5 %h6) +$ block $% [%paragraph p=(list inline)] [%blockquote p=(list inline)] [%table rows=(list (list contents))] - [%heading p=cord q=@] + [%heading p=cord q=heading] [%list p=(list inline) ordered=?] [%media =media] [%codeblock code=cord lang=cord] @@ -118,4 +119,3 @@ :: [%date p=@da] == -- --- |