# Discourse Username in Embedded Comments

**URL:** https://meta.discourse.org/t/discourse-username-in-embedded-comments/40103
**Category:** Support
**Created:** [24 februari 2016 om 18:03 UTC](https://meta.discourse.org/t/discourse-username-in-embedded-comments/40103 "2016-02-24T18:03:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![micpringle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/micpringle/32/51147_2.png) [@micpringle](https://meta.discourse.org/u/micpringle)
#### Post date: [24 februari 2016 om 18:03 UTC](https://meta.discourse.org/t/discourse-username-in-embedded-comments/40103/1 "2016-02-24T18:03:35Z")

</div>

Hi,

I’ve been trying to get the embedded Discourse comments to work with multiple users, via the `discourseUserName` field that’s part of embed.js.

The generated embedding URL seems to be correct (creating the `discourse_username` param), but I don’t think this is being passed correctly in the controller.

If I understand this correctly, then the following line triggers the job that will extract the content from the website:

> <https://github.com/discourse/discourse/blob/main/app/controllers/embed_controller.rb#L38>

Notice that there is no mention of the `discourse_username`. However the `RetrieveTopic` job expects it to be passed as an argument named `author_username`:

> <https://github.com/discourse/discourse/blob/main/app/jobs/regular/retrieve_topic.rb#L16>

Am I correct in this analysis? Has anybody ever had non-RSS-poll username embedding working?

Thanks for your help.

---

<div class="post-metadata">

### Author: ![samd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samd/32/121942_2.png) [@samd](https://meta.discourse.org/u/samd)
#### Post date: [25 februari 2016 om 13:13 UTC](https://meta.discourse.org/t/discourse-username-in-embedded-comments/40103/2 "2016-02-25T13:13:00Z")

</div>

I have created a PR that addresses this:

[https://github.com/discourse/discourse/pull/4040](https://github.com/discourse/discourse/pull/4040)

sam

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [22 december 2018 om 16:08 UTC](https://meta.discourse.org/t/discourse-username-in-embedded-comments/40103/3 "2018-12-22T16:08:06Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [22 december 2018 om 22:33 UTC](https://meta.discourse.org/t/discourse-username-in-embedded-comments/40103/4 "2018-12-22T22:33:04Z")

</div>


