Request: images in posts visible for registered users (or min tl) only

AI-generated summary

A user, drreen, requested a feature to prevent non-registered users from viewing images in posts. codinghorror stated that this has never been requested before and there are currently no plans to implement it. However, simon provided a CSS workaround to hide images for anonymous users, which Mittineague confirmed works, although it also hides avatars in quotes and images in oneboxes. thoka also expressed interest in this feature, particularly for restricting the publishing of user faces to certain groups in a public school setting.

Hey guys

Is there a way to prevent non-registered users to see images in posts?
Lot of typical forums bring this feature with them.
I searched in discourse admin settings, but could not find such an option.
I only could find one to prevent attachment downloads.

We have no plans for this, and it has never been requested until now.

Yes, if hiding them with css is good enough for you, you can do it like this.

.anon .cooked img {
  display: none;
}
「いいね!」 3

I tried and it does work.
It also hides avatars in quotes, images in oneboxes and emoji, but I guess if the idea is to give a reduced experience to non-registered visitors (i.e. anons) then it fills the bill.

ドイツの公立学校でディスカッション・フォーラムを設立しようとしています。
そのような取り組みにおいて、ログインしていない閲覧者に対してアバターを記号に置き換えるオプションを提供したり、特定のグループにのみ顔の公開を制限したりできる機能が備わっていると非常に助かります。