Sorry to drop in. Can someone explain what’s happening? I’m working on an image-based feature and I’d like to understand what changes (if any) I should be anticipating. šŸ˜…

Reply to this note

Please Login to reply.

Discussion

Take a look in NIP-94. It adds a hash to verify ifnthe picture has be doctored by the server, a blurhash to show when loading and a description for accessibility. It's a great spec.

Thanks! Just read it.

It seems like the argument against is that it creates an extra step (client has to query the 1063 event then fetch the image).

The nip doesn’t seem to specify how to reference the image from a kind=1 note. I guess it’s expected to be the #[] content + ā€˜e’ tag nomenclature?

Side note: the nip doesn’t specify which tags are required/optional and whether any can be repeated. For example, could multiple ā€˜url’ tags be provided for failover?

Are 1063 events replaceable? For example, if the canonical url of an image were to change for some reason.

Is there a list of allowed protocols for the url? One might assume http:// and https://. What about data:// URI’s?

> The nip doesn’t seem to specify how to reference the image from a kind=1 note.

Yep, we just do what we usually do for every other referenced post, either the old #[] or the new nostr:nevent.

> Side note: the nip doesn’t specify which tags are required/optional and whether any can be repeated.

Yep. We should probably refine the text as we figure out the details.

> Are 1063 events replaceable?

They are not replaceable.

> Is there a list of allowed protocols for the URL?

Amethyst assumes any URI. As a viewer, we must support whatever comes in.

#[4]​ is replacing urls with notes that you have to fetch to get the url which adds extra latency to image loading. I would rather just have this info in the kind1 tags so I don’t have to n+x notes for every note in the timeline.

The extra metadata is great and I will likely do something similar, but I probably won’t have it in a separate note.

Makes sense, thanks for explaining! šŸ™

Guys, I was watching the entire conversation with šŸæ

was here by accident , do not regret it

šŸ˜‚ coding reality show

Absolutely. I find it funny that the thread starts we me posting « I’m tired… » then they barged in.

«Jb  comes from the right to aggressively tackle the issue »

« Vitor Pamplona​ attempts to deflect the attack. It looks as if maybe… »

« But Jb doesn’t give up and tries again from the leftĀ Ā»

« Vitor Pamplona​ seems to have found a way to maybe divert the flow of the action in the other directionĀ Ā»

« no, What a shocker pablof7z​ enters the ring unexpectedly tapped in by jb55

šŸ˜‚šŸ˜‚šŸ˜‚šŸ˜‚

LOL

That sums it up! šŸ˜‚

Oh and by the way, I had to go back to an older version of Amethyst because I want to be able to upload images that everyone can see directly in my client.

So tell me if you can see the image that started it all! šŸ˜‰

Yes

Interesting…

🤣🤣🤣 if that cat knew what he had started

šŸ”„šŸ™€šŸ”„

Right? We started such an amazing debate! šŸ˜‰

I’m glad I caught a glimpse of real dev behavior in the wild. It wasn’t this exciting when I saw them at the zoo… I meant the office

how to add two image with NIP-94?

I’m not entirely sure. My guess would be that in the kind=1 note content, you’d have # [0] and # [1]. Then in the tags, you’d have two ā€˜e’ tags pointing to two different kind=1063 (NIP-94) events.

I still support kind 1 event with urls in content.

and NIP-94 event will also showed but don't be send from my client.

this situation is exactly what major clients need to take into account, each breaking change imposes a tax on everyone else that is running a small client

nostr: metions are superior to #[], but now I am forced to go back and update a bunch of clients I wrote just to regain what was previously working

it's ok for new features, but breaking functionality must be embraced very slowly