Open dmnyc opened 3 weeks ago
it is not clear to me how / when would damus know when to hide a link
In my logic it would meet two conditions:
On Thu, Apr 25, 2024 at 9:38 AM alltheseas @.***> wrote:
it is not clear to me how / when would damus know when to hide a link
— Reply to this email directly, view it on GitHub https://github.com/damus-io/damus/issues/2187#issuecomment-2077215854, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3YJQ3KREIWBGFLQDPK47DY7EBOTAVCNFSM6AAAAABGY2KAJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGIYTKOBVGQ . You are receiving this because you authored the thread.Message ID: @.***>
I am not certain about this approach.
Maybe @robagreda or @ericholguin have thought about this.
The other idea is related to this issue: https://github.com/damus-io/damus/issues/1397
Create a link card in the note, which would allow the user to delete the URL and the link is still visible in the post.
I think it's a good idea!
I don't know if this should be a separate issue but Damus also exposes @nevent tags, for example:
what do you expect to see in place of ATnevent @dmnyc ?
Nothing, I think it should be invisible the same way @note / nostr:note links are.
Message ID: <damus-io/damus/issues/2187/2087842427 @.***>
Nothing, I think it should be invisible the same way @note / nostr:note links are.
Message ID: <damus-io/damus/issues/2187/2087842427 @.***>
this is ATnote behavior: display as quote note
On Tue, Apr 30, 2024 at 05:10:53PM GMT, The: Daniel ⚡️ wrote:
I don't know if this should be a separate issue but Damus also exposes @nevent tags, for example:
yes this was a bug introduced during the nevent refactoring. still needs to be fixed
I like how Primal renders links, similar to Nostur but cleaner and with a larger image.
Primal
Nostur
Damus
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