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

@Zahra, this error does not relate to postCreateDcsTags(). It is displayed only when using postSetRouteProps() with a non-existent category.

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

2 Likes

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

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.

1 Like

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.

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.
2 Likes

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

@syl thanks will take a look

@AndyatFocallocal can you make my account on BTM with email address me@zahraweb.uk an admin please

1 Like

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

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.

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

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

oh… yes. i thought it was going to me :stuck_out_tongue:

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

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

He’s probably referring to the Create Your 1st Post section here: Setting up Discourse via the admin section after launching a new site

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

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

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

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.

yip, im in now. Thanks

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

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

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

i meant *code