DarrenOfficial / dpaste

The Django project driving dpaste.org
https://dpaste.org
MIT License
531 stars 121 forks source link

The one-time snippets destroyed when previewed in messengers #245

Open mxchist opened 6 months ago

mxchist commented 6 months ago

Description

When I send a copied link of a one-time snipped through a telegram, the link is destroyed - because telegram has the preview function for the web-links, and Dpaste counts that link was opened and deletes it before another user opened it.

Environment

telegram 4.14.9 desktop for Ubuntu https://github.com/telegramdesktop/tdesktop

Steps to reproduce

  1. Create one-time snippet
  2. Send it through telegram
  3. Try to open it

Expected result

The link should be opened, and then destroyed

Actual result

The link is already destroyed

DarrenOfficial commented 6 months ago

This is the intended outcome, onetime snippet will not work if you're opening it on a service that has a web crawler (I.e. Telegram, Whatsapp, Discord, ect.)

I'm not too sure if there is a way to prevent this reliably