# Possibile modo per nascondere gli utenti ignorati dall'elenco degli argomenti?

**URL:** https://meta.discourse.org/t/potential-way-to-hide-ignored-users-from-topic-list/191980
**Category:** Development
**Created:** [28 Maggio 2021, 10:03pm UTC](https://meta.discourse.org/t/potential-way-to-hide-ignored-users-from-topic-list/191980 "2021-05-28T22:03:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)
#### Post date: [29 Maggio 2021, 10:11pm UTC](https://meta.discourse.org/t/potential-way-to-hide-ignored-users-from-topic-list/191980/2 "2021-05-29T22:11:48Z")

</div>

Ecco la mia implementazione attuale  
[https://github.com/notedboi/Discourse-Hide-Ignored-Users](https://github.com/notedboi/Discourse-Hide-Ignored-Users)  
Ispirata a  
[https://meta.discourse.org/t/topics-created-by-ignored-users-showing-on-homepage/170366/14](https://meta.discourse.org/t/topics-created-by-ignored-users-showing-on-homepage/170366/14)  
e con questo componente del tema

> [@Topic Author](https://meta.discourse.org/t/discourse-topic-author/111021):
>
> warning Deprecated in favour of [Topic List Author](https://meta.discourse.org/t/topic-list-author/269910)discourse2Summary Topic Author will change the layout of the /latest and categories and latest topic homepage showing in the first column the author of the topic. It works both on desktop and mobile.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/topic-author)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-topic-author](https://github.com/discourse/discourse-topic-author)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Theme…](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)

Funziona anche su mobile.

Inoltre, se aggiorni questa riga

> <https://github.com/discourse/discourse-topic-author/blob/main/mobile/head_tag.html#L5>

in

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

```

e modifichi il mio codice su  
[https://github.com/notedboi/Discourse-Hide-Ignored-Users/blob/main/common/head\_tag.html#L13](https://github.com/notedboi/Discourse-Hide-Ignored-Users/blob/main/common/head_tag.html#L13)  
in

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

```

Potrai mantenere la visualizzazione dell’avatar/card dell’ultimo autore, pur rimuovendo i topic creati dall’autore ignorato.

La mia unica preoccupazione è che lo script continui a controllare ogni 500 ms e potrebbe consumare troppa memoria.

---

_[View the full topic](https://meta.discourse.org/t/potential-way-to-hide-ignored-users-from-topic-list/191980)._
