diff options
author | Darius Kazemi <darius.kazemi@gmail.com> | 2020-01-06 23:16:52 -0800 |
---|---|---|
committer | Darius Kazemi <darius.kazemi@gmail.com> | 2020-01-06 23:16:52 -0800 |
commit | a4392c4c663b6b23da7320d95b5a4b23f474f213 (patch) | |
tree | af3c8fe7ab2b6dbf6e714149f4c2ab97bd56bd48 /activitypub.js | |
parent | 8138b5757bed1beb9c21f1e32a3fc9920e989f49 (diff) |
minor fixes
Diffstat (limited to 'activitypub.js')
-rw-r--r-- | activitypub.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activitypub.js b/activitypub.js index 22404cf..5940ac0 100644 --- a/activitypub.js +++ b/activitypub.js @@ -510,8 +510,6 @@ function _handleFollow(req, res) { "content": `<span class=\"h-card\"><a href="${req.body.actor}" class="u-url mention">@<span>${name}</span></a></span> Will you attend ${event.name}? (If you reply "Yes", you'll be listed as an attendee on the event page.)`, "oneOf": [ {"type":"Note","name": "Yes"}, - {"type":"Note","name": "No"}, - {"type":"Note","name": "Maybe"} ], "endTime":event.start.toISOString(), "tag":[{"type":"Mention","href":req.body.actor,"name":name}] @@ -865,7 +863,7 @@ function processInbox(req, res) { _handleAcceptEvent(req, res); } // if an Undo activity containing an Accept containing the id of the Event we sent out hits the inbox, it is an undo RSVP - if (req.body && req.body.type === 'Undo' && req.body.object && req.body.object.object && typeof req.body.object.object === 'string' && req.body.object.type !== 'Follow') { + if (req.body && req.body.type === 'Undo' && req.body.object && req.body.object.object && typeof req.body.object.object === 'string' && req.body.object.type === 'Accept') { _handleUndoAcceptEvent(req, res); } // if a Create activity with a Note object hits the inbox, and it's a reply, it might be a vote in a poll |