Avatar
Sirius
4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0
developing iris.to

Github Copilot wrote me code to embed youtube videos. Let's deploy.

```

const youtubeRegex = /(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w-]{11})(?:\S+)?/g;

replacedText = reactStringReplace(replacedText, youtubeRegex, (match, i) => {

return (

key={match + i}

width="560"

height="315"

src={`https://www.youtube.com/embed/${match}`}

frameBorder="0"

allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"

allowFullScreen

/>

);

});

```

Youtube I could embed as video. The problem is more with links to random servers that could track users IP addresses and user agents.

Iris loads images via proxy to resize and avoid IP leaking. But I don't have the resources to do this with videos.

What are other clients doing? Just embed remote video urls? Click to load?

You can, but it’s always safer to use alby or nos2x browser extension instead of pasting the private key into a website.

Thanks for the good feedback! Already made the center column narrower.

- "show N new posts" button instead of the feed jumping as messages arrive

- set profile photo url (currently saved as data url, not supported by all clients)

- upload photos for profile and posts

Can I set this as the link preview picture of iris.to?

What improvements are needed to make iris.to the best Nostr client?

lightning:lnbc200u1p3mgvgrpp5vjy6nahh6xxxkg3fd43p53er4s5c42v5shezd2a39h2tq72fym0sdqaf9exjueqgdhkven9v5sw9xy4a7ug7cqzpgxqyz5vqsp5daqxxvc5t0jm8lamm63g7c992w9f57gs4cjha4y8zkkrn207medq9qyyssqfgwd24d3rqpyuvkvmxxwyyaht387fqnv573rzqptmjgf34wkz685784wx58myeeynykfhcxd9w89qefagvkdtjl7v2gwk3n8pgg4fegpstka4x

Iris.to profile posts / replies / likes loading fixed / improved

Fixed in Iris, now it tags with npub addresses

Yeah, I just added the maxRelays number selector. Will improve the peer settings page and save peers.

What’s this client?

updates to https://iris.to

follows jb55 by default and subscribes to everything from 2nd degree follows

highlights tags in posts

Replying to Avatar Sirius

Check out https://iris.to, it now subscribes to everything from 2nd degree follows! If you already visited it, refresh so the application updates.

crashes quickly on mobile, debugging!

Iris.to the only client that shows the likers of posts? :D

Check out https://iris.to, it now subscribes to everything from 2nd degree follows! If you already visited it, refresh so the application updates.