tomhazledine on Nostr: Question for any npub1z9mgj…jrz2z hotshots out there: I’m writing a script that ...
Question for any
npub1z9mgjaujnjyhwyxwuvs7czf0vg3qk86nmw4q3988kuxgfdfz8rfs9jrz2z (npub1z9m…rz2z) hotshots out there:
I’m writing a script that adds “related posts” to posts’ frontmatter. (an array in PostA’s frontmatter that references PostX and PostY)
What should go in that frontmatter? For flexibility it makes sense to put *all* of PostB in there (content, frontmatter, the whole shebang), but that feels totally gross.
If it’s just a reference (“permalink” maybe 🤷♂️), then that means the template has to do the lookup work.
What’s the sensible middleground?
Published at
2023-11-22 22:02:06Event JSON
{
"id": "8723afb9d90bf526e9781a9134ca696ff6ba6c0a62c92180fc7d7a63181d76b1",
"pubkey": "8b387cc18c92a0b4d42bdc431c93d10c3e2ee06eda3c869760e44af4174b7495",
"created_at": 1700690526,
"kind": 1,
"tags": [
[
"p",
"11768977929c897710cee321ec092f62220b1f53dbaa0894e7b70c84b52238d3",
"wss://relay.mostr.pub"
],
[
"p",
"d2de55a66d020f7ee1b419123ecc712cdbb9c2ee6baaaf0a894a87131b8d8c23",
"wss://relay.mostr.pub"
],
[
"proxy",
"https://mastodon.social/users/tomhazledine/statuses/111456454311653711",
"activitypub"
]
],
"content": "Question for any nostr:npub1z9mgjaujnjyhwyxwuvs7czf0vg3qk86nmw4q3988kuxgfdfz8rfs9jrz2z hotshots out there:\n\nI’m writing a script that adds “related posts” to posts’ frontmatter. (an array in PostA’s frontmatter that references PostX and PostY)\n\nWhat should go in that frontmatter? For flexibility it makes sense to put *all* of PostB in there (content, frontmatter, the whole shebang), but that feels totally gross.\n\nIf it’s just a reference (“permalink” maybe 🤷♂️), then that means the template has to do the lookup work.\n\nWhat’s the sensible middleground?",
"sig": "cb5dd72263a13f2590c3e6b21793fddb8e94ba64ebe42c362c745ba4b43486b95323dc0a08d01c0a23634b6c1195b48959bfb0b02c80d67054c59f33250b9c14"
}