Package: toot Version: 0.27.0-1 Severity: wishlist X-Debbugs-Cc: debbug.t...@sideload.33mail.com
It’s quite cool that we can simply upload an image using the CLI “upload” command and make no reference to it in a toot, effectively using any Mastodon node as an image pastebin. But surely this was not the intent. There should be an in-band usage for the URL that is returned after uploading media. There is no documented way to use those URLs. Naturally the CLI /post/ command should be able to make use of media URLs. Intuitively, this should do the job: $ toot post --media "$media_url"; ← does not work The parameter supplied with the --media option must be a path to a local file. So what happens is users upload an image using the /upload/ CLI command, they get a useless URL back, and then they use the /post/ command which forces them to specify a local filename again. The user does so, which then presumably results in two copies of the same media on the server. If the --media option is coded to support URLs, this would not only make the /upload/ command more useful, it would even make it possible for multiple posts to refer to the same media file, thus not wasting disk space on the server. It would also enable users to embed references to external images without storing them on the local server at all. -- System Information: Debian Release: 11.5 APT prefers stable-updates APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 'testing'), (990, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-19-amd64 (SMP w/2 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages toot depends on: ii python3 3.9.2-3 ii python3-bs4 4.9.3-1 ii python3-requests 2.25.1+dfsg-2 ii python3-urwid 2.1.2-1 ii python3-wcwidth 0.1.9+dfsg1-2 toot recommends no packages. toot suggests no packages. -- no debconf information