# Users posting a resource are automatically subscribed ('following') the Discourse topics on their page

**URL:** https://publichappinessmovement.com/t/topic/1588
**Category:** React Js and Meteor
**Tags:** done, reactjs
**Created:** [3 September 2019 16:01 UTC](https://publichappinessmovement.com/t/topic/1588 "2019-09-03T16:01:11Z")
**Posts on this page:** 20
**Page:** 4

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [27 April 2020 15:32 UTC](https://publichappinessmovement.com/t/topic/1588/61 "2020-04-27T15:32:02Z")

</div>

> [@Zahra](#):
>
> I get a console error when opening the discussion pages:

@Zahra, this error does not relate to [postCreateDcsTags()](https://github.com/sylque/dcs-client/blob/master/comToPlugin.md#create-docuss-tags-in-advance). It is displayed only when using [postSetRouteProps()](https://github.com/sylque/dcs-client/blob/master/comToPlugin.md#set-the-route-properties) with a non-existent category.

> [@Zahra](#):
>
> Passing this into postCreateDcsTags still doesnt seem to do the job though

Would you please give me a link to your code on github?  
Also, how do you check the the function call doesn’t work?

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [27 April 2020 15:51 UTC](https://publichappinessmovement.com/t/topic/1588/62 "2020-04-27T15:51:32Z")

</div>

I am only seeing that error after making this change though, thats why i thought it might be related / relevant.

You can see the function here: [https://github.com/focallocal/fl-maps/commit/5b52dc10c7c903236c63460d750d0b395ca44262](https://github.com/focallocal/fl-maps/commit/5b52dc10c7c903236c63460d750d0b395ca44262)

I tested by creating a resource and then clicking one of the share your experience options and adding a new discussion point using a different user.

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [27 April 2020 19:06 UTC](https://publichappinessmovement.com/t/topic/1588/63 "2020-04-27T19:06:54Z")

</div>

> [@Zahra](#):
>
> I am only seeing that error after making this change though, thats why i thought it might be related / relevant.

That’s strange. You might want to fix this, just to be sure it’s not related to the current issue. Track the calls to `postCreateDcsTags()` and check that the category exists in Discourse.

> [@Zahra](#):
>
> I tested by creating a resource and then clicking one of the share your experience options and adding a new discussion point using a different user.

Your code looks good. I advise you test the result with this more robust method:

- suppose the name of the page you created is: `m_1q`,
- suppose the triggers ids are: `photos, videos, stories`,
- then `postCreateDcsTags()` should create those Discourse tags: `dcs-m_1q-photos, dcs-m_1q-videos, dcs-m_1q-stories`
- To check whether those tags were actually created, go to those urls: `https://publichappinessmovement.com/tags/dcs-m_1q-photos, https://publichappinessmovement.com/tags/dcs-m_1q-videos, https://publichappinessmovement.com/tags/dcs-m_1q-stories`
- If you get “Oops! That page doesn’t exist or is private.”, then it means the tags have _not_ been created.
- Another way to check is to go to `https://publichappinessmovement.com/tags`, press `alt+a` (you must be a Disocurse admin for this to work) and check that the tags are in the list.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [27 April 2020 21:54 UTC](https://publichappinessmovement.com/t/topic/1588/64 "2020-04-27T21:54:29Z")

</div>

@Zahra which account and site would you like me to make an admin?

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 09:38 UTC](https://publichappinessmovement.com/t/topic/1588/65 "2020-04-28T09:38:58Z")

</div>

@syl thanks will take a look

@AndyatFocallocal can you make my account on BTM with email address [me@zahraweb.uk](mailto:me@zahraweb.uk) an admin please

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 10:13 UTC](https://publichappinessmovement.com/t/topic/1588/66 "2020-04-28T10:13:38Z")

</div>

@syl @AndyatFocallocal the tags don’t seem to have been created. How do i check the discourse categories?

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:16 UTC](https://publichappinessmovement.com/t/topic/1588/67 "2020-04-28T10:16:18Z")

</div>

Working on making you an admin. the admin confirmation emails are being suppressed by my mail client and i’m trying to work out why. I can make you an admin on PHM instead if you’d like, i know the set up there is running.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:17 UTC](https://publichappinessmovement.com/t/topic/1588/68 "2020-04-28T10:17:00Z")

</div>

I’m not really sure what you mean by categories. What are you looking for?

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 10:17 UTC](https://publichappinessmovement.com/t/topic/1588/69 "2020-04-28T10:17:32Z")

</div>

i got an email confirmation from btm giving me admin access. Is that what you expect?

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:18 UTC](https://publichappinessmovement.com/t/topic/1588/70 "2020-04-28T10:18:34Z")

</div>

oh… yes. i thought it was going to me 😛

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 10:19 UTC](https://publichappinessmovement.com/t/topic/1588/71 "2020-04-28T10:19:43Z")

</div>

Syl said earlier to check that the category exists in discourse, but im not sure where these are set up

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:20 UTC](https://publichappinessmovement.com/t/topic/1588/72 "2020-04-28T10:20:17Z")

</div>

![image](https://publichappinessmovement.com/uploads/default/original/1X/1ef44fc9b3fa0441d43be88918d823996fc83d19.png)

I think i do need to receive that email to confirm you

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:23 UTC](https://publichappinessmovement.com/t/topic/1588/73 "2020-04-28T10:23:21Z")

</div>

He’s probably referring to the Create Your 1st Post section here: [Setting up Discourse via the admin section after launching a new site](https://publichappinessmovement.com/t/topic/1896)

I thought that was done, but i’ll do it again just to check

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 10:23 UTC](https://publichappinessmovement.com/t/topic/1588/74 "2020-04-28T10:23:53Z")

</div>

I can get into the admin interface here: [https://brightertomorrowmap.com/admin](https://brightertomorrowmap.com/admin) any other way i can test its working?

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:27 UTC](https://publichappinessmovement.com/t/topic/1588/75 "2020-04-28T10:27:23Z")

</div>

Looks like we had missed that 1st set up post, give it a try again now.

> [@Zahra](#):
>
> I can get into the admin interface

you can, or you can’t? there is a bug so you have to type /admin in directly as clicking the admin button doesn’t work.

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 10:31 UTC](https://publichappinessmovement.com/t/topic/1588/76 "2020-04-28T10:31:50Z")

</div>

yip, im in now. Thanks

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:39 UTC](https://publichappinessmovement.com/t/topic/1588/77 "2020-04-28T10:39:02Z")

</div>

Odd as i should need to confirm, also odd that i’m not getting that email. I’ll investigate.

The auto follow you’re working on might be working now. The function would fail without that 1st test post i’ve just created as Docuss needs those tags to be able to function

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [28 April 2020 10:41 UTC](https://publichappinessmovement.com/t/topic/1588/78 "2020-04-28T10:41:08Z")

</div>

![image](https://publichappinessmovement.com/uploads/default/original/1X/7367f3b34323f69379cec8fc8d974c8332719f5f.png)

I don’t you are an Admin yet @Zahra. I think you’re a Mod but will have some functions missing

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 10:43 UTC](https://publichappinessmovement.com/t/topic/1588/79 "2020-04-28T10:43:40Z")

</div>

okay do you want me to move my testing onto phm instead if its easier? Will need to push the node too

---

<div class="post-metadata">

### Author: ![Zahra](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@Zahra](https://publichappinessmovement.com/u/Zahra)
#### Post date: [28 April 2020 10:43 UTC](https://publichappinessmovement.com/t/topic/1588/80 "2020-04-28T10:43:59Z")

</div>

i meant \*code

[Previous page](https://publichappinessmovement.com/t/topic/1588.md?page=3)

[Next page](https://publichappinessmovement.com/t/topic/1588.md?page=5)
