crabber-net / crabber

A Twitter clone written in Python + Flask with extended features and a focus on inclusivity.
https://crabber.net
GNU General Public License v2.0
48 stars 16 forks source link

Add Option To Delete/Disable Embeds #99

Open the-corvidae-collective opened 3 years ago

the-corvidae-collective commented 3 years ago

Is your feature request related to a problem? Please describe. Currently, embeds are automatically used whenever possible, including when using hyperlinks. Embeds also do not appear until a molt is posted. This is not inherently an issue, but it makes it impossible to choose to not use embeds.

Describe the solution you'd like It would be nice to have the option to delete or not use embeds when desired, like how Discord allows you to delete/clear embeds after sending a message. Ideally, embeds would still be used by default, with the option to delete them selectively, similarly to how Discord handles them. This would probably involve making embeds appear during editing and giving the option to clear/delete them.

Describe alternatives you've considered It might also be helpful to have an option in settings to toggle automatic/default embeds on and off, but the first option described seems much easier to implement.

jakeledoux commented 3 years ago

Embeds during editing is not entirely possible at the moment because scraping the OpenGraph meta tags from websites is something that's attempted server-side. I could put a placeholder card when you're composing but that's not entirely right either because sometimes cards cannot be found and are omitted. If removing cards after posting is something people would like then I can look into that. A Discord-style escape sequence could also be useful I suppose.