devex
devex copied to clipboard
Twitter Bot issue: Link that is tweeted remains active even if the opportunity becomes unpublished
See this tweet as an example:
https://twitter.com/gcdevex/status/1001171124691066881
The link in this tweet will open the opportunity however the opportunity has been unpublished.
No one other than the owner and admin should be able to access unpublished opportunities.
For a future developer, the code for the automatic Tweets can be found in this function: https://github.com/canada-ca/devex/blob/master/modules/opportunities/server/controllers/opportunities.server.controller.js#L439