Closed acailly closed 7 years ago
thanks, I will take a look on that today.
The fix will be merge after the review. We will publish a new version of the package right after. Thanks again @acailly !
Weird think happened with Github (about #79). This is why we have now #80
fixed with version 1.1.7
Overview
broid-messenger - bug
Details
User id is not set in activitystreams.actor field, causing schema validation to fail.
Steps to Reproduce
Start a bot using broid-messenger Talk to it
Observed
I have this error:
After investigation, I found that
activitystreams.actor.id
is set in parser.js-parse(event):... and that the value comes from
authorInformation
, which is set in adapter.js-listen():... from the return value of adapter.js-user(...):
But as we can see in messenger doc,
id
is not returned in this request: https://developers.facebook.com/docs/messenger-platform/user-profileExpected
The field id is set, the following modification does the trick but I didn't test it a lot: