# Decorate a topic in latest on mobile

**URL:** <https://meta.discourse.org/t/decorate-a-topic-in-latest-on-mobile/254534>\
**Category:** Development\
**Created:** [February 8, 2023, 11:56pm UTC](https://meta.discourse.org/t/decorate-a-topic-in-latest-on-mobile/254534 "2023-02-08T23:56:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![asc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/asc/32/288324_2.png) [@asc](https://meta.discourse.org/u/asc)\
**Post date:** [February 9, 2023, 4:04pm UTC](https://meta.discourse.org/t/decorate-a-topic-in-latest-on-mobile/254534/4 "2023-02-09T16:04:17Z")

</div>

So far as I understand it, Watched Words is an admin setting that applies to all users, correct? What I’m trying to do is allow users to basically have their own watched words filter that can screen out posts that are within the forum rules but the user might not want to see for their own reasons.

Fake scenario: a pets forum might have a general thread about dealing with pet hair where the main topic isn’t tagged with a specific kind of animal. User A replies about their dog, User B replies about their cat, but User A doesn’t want to see anything about cats at all. What this theme component does is lets User A put “cat” in their blocklist, and then anywhere that “cat” appears in a topic or rely, replaces it with “Blocked for containing cats” with a click to show anyway.

It’s intended for stuff that’s on topic and within the rules of the forum in general, but that might not be tagged or comes up in replies of a thread tagged something User A does want to see. The forum that I’m migrating from had been using a little browser userscript to scan the page after loading, and one of the attractions of Discourse was the possibility of building the block function right in so it works on mobile too (the userscript we were using doesn’t run on mobile browsers). It cuts down on flagging and arguments about what belongs in general threads if users can just decide they don’t want to see X without it being a rules violation.

I don’t think I’ll post this as a proper theme component because it requires three user fields to be created in the admin panel (which I think would need to be a plugin to create automatically?). I’m on a basic hosted plan here and so not fiddling with plugins, but I can post the finished theme component code and user fields settings when I’m done.

---

_[View the full topic](https://meta.discourse.org/t/decorate-a-topic-in-latest-on-mobile/254534)._
