# Trying to create a theme component that shows when text is pasted

**URL:** <https://meta.discourse.org/t/trying-to-create-a-theme-component-that-shows-when-text-is-pasted/418049>\
**Category:** Development\
**Created:** [November 22, 2026, 8:14pm UTC](https://meta.discourse.org/t/trying-to-create-a-theme-component-that-shows-when-text-is-pasted/418049 "2026-11-22T20:14:03Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Andrew\_Rowe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew_rowe/32/445877_2.png) [@Andrew\_Rowe](https://meta.discourse.org/u/Andrew_Rowe)\
**Post date:** [November 23, 2026, 1:50pm UTC](https://meta.discourse.org/t/trying-to-create-a-theme-component-that-shows-when-text-is-pasted/418049/7 "2026-11-23T13:50:59Z")

</div>

> [@Rajat\_99](#):
>
> - Bots can create posts directly through the Discourse API

can they? I thought making a post in a topic or starting a new topic using the api required a key. I’m guessing that meta doesn’t hand out api keys to brand new users.

I’m just trying to understand. So the spam posts here on meta are bots or agents that have been trained to spoof the new user sign up process?

EDIT:

OK maybe I answered my own question. This topic from 2021 seems to indicate that if a user is registered and is allowed to post in a given category they are allowed to use the api to do so.

> [@Create a topic/post as a user with api](https://meta.discourse.org/t/create-a-topic-post-as-a-user-with-api/181677/2):
>
> As long as the username you have set for the Api-Username belongs to an existing user that has permission to create a post in the category you are posting to, you can use the username as the Api-Username along with an All Users API key.

So to take this one step forward, a bot is trained to sign up and create a user then use the api to post? That doesn’t really seem to match what I see getting picked up by the spam bot.

I’m guess if you can train a bot to create a new user, it wouldn’t be to difficult to train it to use the normal manner to post. Just curious as to how this works

---

_[View the full topic](https://meta.discourse.org/t/trying-to-create-a-theme-component-that-shows-when-text-is-pasted/418049)._
