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

m_gather doesn’t look like an event page name. I think event page names are all of the form m_0, m_1, etc. Here is a sample event url: https://publichappinessmovement.com/docuss/m_0

So would it be m_* to include them all, or is that a single function you are calling as a test @Zahra

Okay it was unclear what the event id should be, will take a look at this later this afternoon.

1 Like

@AndyatFocallocal i have changed this to use the event id and it still is not working - its been pushed to deploy-btm and deploy-phm

1 Like

@syl you can see Zahra’s changes here: https://github.com/focallocal/fl-maps/commits/deploy-btm. Can you see any reason it’s not working?

@Zahra can you please push all changes to Master branch as well. I just wrote up some documentation
here: Getting Started: Making a PR or Commit via Github

@Zahra, in my previous post here, I suggested 2 options to build the Docuss page name corresponding to a newly created event. You chose to implement my second (and simplest) option. However, I’m now realizing this option doesn’t work (I’ve edited my previous post to remove it). So you need to use option 1. Sorry for the confusion.

P.S.: from what I see in your code, you got the event id right.

1 Like

@syl @AndyatFocallocal

Hi guys, i have updated the code to use the route matcher to get the page name instead. It pulls the the page name successfully, the last one i created the page name was ‘m_1q’.

Passing this into postCreateDcsTags still doesnt seem to do the job though. I get a console error when opening the discussion pages:

Latest dcs-d - Docuss Error - Category “General Discussion” not found in Discourse

Is there a step missing from this? Does a particular category need to be sent with the request as well?

1 Like

FYI my changes are only in deploy-btm at the moment

1 Like

@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