![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/eb9cfeb5-4eb5-4b1b-a75c-8d9e04c3f856.png)
I think it’s both. Instead of trying to update the codebase with one new database attributes for each conceivable way to tag content, you simply put in facilities to abstract that - “show only posts with tag foobar”, “hide all posts with tag foobar”.
Recognize your behavioral triggers. Could be anxiety, stress, etc. Try to actively recognize how you’re feeling before you engage in an addictive behavior, and then either do a substitute activity or find ways to (calmly) move your thoughts or feelings to a different place. The key concept is to divert your thinking that produces the addictive behavior.
Just my two cents, not a doctor but have broken an addiction or two.