Open jD91mZM2 opened 6 years ago
Link previewing? That's a discussion about your client directly. So, by link previewing you mean cards that get formed from meta tags?
By link previewing I mean showing images when you direct link them, or if it's not an image either nothing or the title.
Can ncurses even do that? I mean show images?
FYI: The client is not limited to cursive. Even though, I suspect Cursive/ncurses does not strip the escape character, so it might be possible to show colors.
Yeah, I say too much trouble, but if you want to do it, do it!
how about implement it, enable by default, have a switch to turn it off?
^ An option for it should definitely exist.
Nice! But we should still have the server be some sort of proxy for the links, right? For safety:tm:?
Wut no? What safety man? Its just link previewing, come on.
But if you don't want to click that link? It can get your IP!
that can be added later...
Link previewing as a whole or server proxy around it?
Obviously a client feature, but man, who does link previewing?? I only see stuff like this but in the form of cards like Twitter and even Discord. Meta's are what get displayed. I say make cards instead with this: http://ogp.me/
In other words this is a huge "No"?
how about the server has an api endpoint to fetch the open graph tags from a url
Yeah I only meant on images for a start, and then maybe title.
Title and images will be extremely easy to be done with opengraph
So, I suggest either: a) add two tags on the messageReceive packet for "urlTitle" and "urlImageUrl" b) New packet for this business.
Sure, but we have to consider one thing: What if somebody posts an illegal link? The server owner could be held responsible for making a request to that site...
What's the worst thing that could happen to the server owner? Do you think that if you send an awful site's link that happens to also have opengraph tags Discord wouldn't show it? I mean I don't get why are you so scared about this.
I'm just considerate. We have to assume the worst out of everybody. Especially when the servers aren't in one location and we can't just say "oh that's user this and that, not me".
Imagine you create an unnamed server, and the first thing that happens is that somebody joins and starts spamming links to child pornography. Your server isn't using a VPN, and as far as any evesdroppers and DNS servers are aware, you're the one making the requests. Imagine the police showing up at your door, and you having to explain to them that the requests are made by users. Especially if you aren't a big company, but rather just some private person. It wouldn't be fun, and you could get into a lot of trouble.
can we just have this not be a feature for now
Sure! I never said it needed to be created right now.
I agree with tbodt, its too early for that and a more client-sided feature (although it may involve a bit of server implementation too) so it can wait.
This shouldn't be a thing in the original client. It could be a thing in the GTK rewrite though. But that's for later.
^ add to gtk pls
Should there be link previewing in the client? Should it always preview (well, maybe optional?) or using some command or button or whatever? Because remember a site could be logging IPs, so if we want it to always preview we'd need the server to act as a VPN.