Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide external link URLs #2187

Open
dmnyc opened this issue Apr 25, 2024 · 11 comments
Open

Hide external link URLs #2187

dmnyc opened this issue Apr 25, 2024 · 11 comments
Labels
design Design exploration & definition is required feature New feature request

Comments

@dmnyc
Copy link

dmnyc commented Apr 25, 2024

When a note contains an external link such as an article or YouTube video, Damus should hide the URL and only display the link preview. This would produce a cleaner user view and save space on screen.

Caveat:

This has to be contextual as a link to the top level of a website should probably not be hidden.

Example when link should be hidden:

https://damus.io/nevent1qqsgv35vzvyl4eesqm8quk33jgxkddgvvnxntj3r75nk5jkwljgr4vgyx2pse

Example when link should not be hidden:

https://damus.io/nevent1qqs04gq030x3ew3mgdumy2j324lpww08enx6q06yldmqmv43vr05x9gpz3mhxue69uhhyetvv9ujumn0wd68ytnzvuq36amnwvaz7tmwdaehgu3dwp6kytnhv4kxcmmjv3jhytnwv46qzxrhwden5te0wfjkccte9ehx7um5wfshg6fwvdhk6qg4waehxw309ajkgetw9ehx7um5wghxcctwvsx36csg

@dmnyc dmnyc added the feature New feature request label Apr 25, 2024
@alltheseas
Copy link
Collaborator

it is not clear to me how / when would damus know when to hide a link

@dmnyc
Copy link
Author

dmnyc commented Apr 25, 2024 via email

@alltheseas alltheseas added the design Design exploration & definition is required label Apr 25, 2024
@alltheseas
Copy link
Collaborator

I am not certain about this approach.

Maybe @robagreda or @ericholguin have thought about this.

@dmnyc
Copy link
Author

dmnyc commented Apr 25, 2024 via email

@jb55
Copy link
Collaborator

jb55 commented Apr 25, 2024

I think it's a good idea!

@alltheseas
Copy link
Collaborator

what do you expect to see in place of ATnevent @dmnyc ?

@dmnyc
Copy link
Author

dmnyc commented May 1, 2024 via email

@alltheseas
Copy link
Collaborator

Nothing, I think it should be invisible the same way @note / nostr:note
links are.

Message ID: </issues/2187/2087842427
@.***>

this is ATnote behavior: display as quote note image

@jb55
Copy link
Collaborator

jb55 commented May 2, 2024 via email

@dmnyc
Copy link
Author

dmnyc commented May 5, 2024

I like how Primal renders links, similar to Nostur but cleaner and with a larger image.

Primal
image

Nostur
image

Damus
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Design exploration & definition is required feature New feature request
Projects
Status: Unvalidated
Development

No branches or pull requests

3 participants