Bash sucks. At best, only use it to pipe commands into each other in the terminal (Or change your shell to something else). For scripting, use Python or something.
Mastodon users can post to Lemmy communities by mentioning the Community ( !KDE@lemmy.kde.social in this case). That allows Lemmy users to comment on it.
The original makes more sense by not having that where clause