moshidon/mastodon
Markus Unterwaditzer d92e2407f3 Remove garbage alt text from images attached via Gboard
See also: https://github.com/tuskyapp/Tusky/pull/4068

----

Steps to reproduce:

1. install Gboard
   (https://play.google.com/store/apps/details?id=com.google.android.inputmethod.latin)

2. open a direct link to any image in Firefox
3. long-press the image to get a "Copy Image" dialogue (and copy the
   image)
4. compose a new post in Tusky
5. Gboard will suggest to paste the image from clipboard
6. paste image, see that when opening alt text editor, it is filled out
   with this garbage string

Why is this bad? It's not when I just fix the alt text. But it breaks
every mechanism that is supposed to remind me of adding alt text.

It's hard to argue that this is within scope of this app but I
also don't see it getting fixed in Gboard, so here we go.
2023-10-25 14:44:20 +02:00
..
src Remove garbage alt text from images attached via Gboard 2023-10-25 14:44:20 +02:00
.editorconfig Add editorconfig 2023-07-04 01:05:55 +03:00
.gitignore Fix volume buttons in photo viewer 2022-02-17 00:58:12 +03:00
build.gradle Apply filters on more screens 2023-10-21 11:44:39 +03:00
proguard-rules.pro Fix crash in ComposeFragment::onSaveInstanceState in release builds 2022-12-15 20:02:26 +03:00