primal-server
primal-server copied to clipboard
Primal should include NIP-92 imeta tags on uploaded images and videos
Here is an example problem post: https://njump.me/nevent1qvzqqqqqqypzqpxfzhdwlm3cx9l6wdzyft8w8y9gy607tqgtyfq7tekaxs7lhmxfqydhwumn8ghj7emvv4shxmmwv96x7u3wv3jhvtmjv4kxz7gqypdmw8nljtms8wqqn29y6s8skdq0van6t88swa9ktz905xccua9m668s9je
It includes an image URL in the post content, but it does not include any NIP-92 imeta tags.
It's very difficult for clients to parse media attachments in Nostr events. With imeta tags it's much easier. But the most popular clients like Primal should support them, otherwise we're stuck writing complicated code in all clients.
For example, the same post bridged to Bluesky does not have an image preview because the original event doesn't have imeta tags: https://bsky.app/profile/odell-primal-net.eclipse.pub/post/3lef3tnwlxk2b
Meanwhile, posts I make from Ditto do have previews because they have imeta tags: https://bsky.app/profile/alex-gleasonator-dev.eclipse.pub/post/3ledokkx2cs2s
I can add more complicated code to the bridge to fix this in my bridge. But I think Primal should include imeta tags.
Even if there is no metadata except the URL, it would still be immensely helpful. For example, odell's post could have:
{
"tags": [
["imeta", "url https://m.primal.net/NJbD.jpg"]
]
}
That alone would be a big improvement.
Pinging agent @alltheseas!