Potential way to hide ignored users from topic list?

Here is my implenetment for now

Inspired by
https://meta.discourse.org/t/topics-created-by-ignored-users-showing-on-homepage/170366/14
And with this theme component

It will also work on mobile.

In additional, if you update this line

to

<a href="{{topic.lastPostUrl}}" data-user-card="{{topic.last_poster_username}}" data-user-id="{{topic.creator.username}}">{{avatar topic.lastPosterUser imageSize="large"}}</a>

and change my code on
https://github.com/notedboi/Discourse-Hide-Ignored-Users/blob/main/common/head_tag.html#L13
to

  let tr = $('*[data-user-id="' + ignored[u] + '"]');

You will be able to keep the last poster’s avatar/card view while remove topic by creator.

My only concern is the script keep checking every 500ms and might take too much memory

3 Likes