deck icon indicating copy to clipboard operation
deck copied to clipboard

Disable URL preview

Open eRaid6 opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. Nextcloud Deck tries to preview URLs in the Description of the card which is not always desired. For example previewing URLs can disclose IP information unintentionally and some links might be intentionally unreachable.

Describe the solution you'd like It would be great if there was a per deck, card or global option to disable URL previews.

Describe alternatives you've considered None

Additional context Looks like there is a request in Notes for this same feature https://github.com/nextcloud/notes/issues/1033

eRaid6 avatar May 26 '23 11:05 eRaid6

A possible alternative might be proxying the requests through the Nextcloud instance for privacy reasons?

stefan-niedermann avatar May 26 '23 15:05 stefan-niedermann

Perhaps, that might help limit disclosing IP information unintentionally (the Nextcloud server IP would still be disclosed to the link target) but links that are intentionally unreachable would still try to render and eventually time out. When I say links that are intentionally unreachable think about the scenario where the user is using Nextcloud Deck to track some work they are doing for their employer but the Nextcloud instance and their end device are not connected to the employer VPN so any link they add that requires the VPN will currently always time out.

eRaid6 avatar May 27 '23 11:05 eRaid6

This "feature" is so unbelievably annoying and a huge privacy and security risk. There must be an option to disable it completely for any given whole instance ASAP.

kartoffelheinz avatar Feb 22 '24 11:02 kartoffelheinz

I agree - I would love to see an option where this can be disabled.

andreas1107 avatar Mar 07 '24 08:03 andreas1107

I agree with @kartoffelheinz ; moreover, it should be absolutely opt-in.

resoli avatar Jun 13 '24 06:06 resoli

+1 this is bizarrely annoying and I don't understand how people have not fought harder to be able to make this optional in the Settings (both at user and instance level)!

Rik44444 avatar Jul 31 '24 15:07 Rik44444

One workaround I have found is to paste URLs within a code block URL here

It makes the URL easy to copy (there's a copy button on code blocks) and it stops the preview behaviour.

andreas1107 avatar Aug 04 '24 07:08 andreas1107

One workaround I have found is to paste URLs within a code block URL here

It makes the URL easy to copy (there's a copy button on code blocks) and it stops the preview behaviour.

Thanks for this!!

Rik44444 avatar Aug 04 '24 08:08 Rik44444

One workaround I have found is to paste URLs within a code block URL here

It makes the URL easy to copy (there's a copy button on code blocks) and it stops the preview behaviour.

Workaround 2: put any character directly before or after the URL. This will also stop the preview behaviour.

Rik44444 avatar Aug 04 '24 15:08 Rik44444

Starting with Nextcloud 29 you can toggle the link preview on after inserting a link:

Screenshot 2024-08-05 at 09 15 52

To avoid doing the remote request you can disable the opengraph provider in config php 'reference_opengraph' => false,

juliusknorr avatar Aug 05 '24 07:08 juliusknorr

Thank you @juliushaertl I will upgrade and test!

eRaid6 avatar Aug 05 '24 10:08 eRaid6