You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes randomly Disqus returns a biorxiv link that doesn't have the DOI in it. For example in this run, https://www.biorxiv.org/content/early/2018/11/09/459529 is returned, but that redirects to the correct/expected link https://www.biorxiv.org/content/10.1101/459529v1 that contains the complete doi.
To simplify the bot code, I made it read the DOI from the url, assuming and hoping it always would contain it. If we ever want this to be more robust, we could have the bot actually fetch the HTML contents at the link and find the DOI in the document:
In the upcoming PR, this at least wont crash the bot, it will just skip the comment with the non-doi link.
Sometimes randomly Disqus returns a biorxiv link that doesn't have the DOI in it. For example in this run,
https://www.biorxiv.org/content/early/2018/11/09/459529is returned, but that redirects to the correct/expected linkhttps://www.biorxiv.org/content/10.1101/459529v1that contains the complete doi.To simplify the bot code, I made it read the DOI from the url, assuming and hoping it always would contain it. If we ever want this to be more robust, we could have the bot actually fetch the HTML contents at the link and find the DOI in the document:
In the upcoming PR, this at least wont crash the bot, it will just skip the comment with the non-doi link.