summaryrefslogtreecommitdiff
path: root/activitypub.js
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2020-01-06 23:16:52 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2020-01-06 23:16:52 -0800
commita4392c4c663b6b23da7320d95b5a4b23f474f213 (patch)
treeaf3c8fe7ab2b6dbf6e714149f4c2ab97bd56bd48 /activitypub.js
parent8138b5757bed1beb9c21f1e32a3fc9920e989f49 (diff)
minor fixes
Diffstat (limited to 'activitypub.js')
-rw-r--r--activitypub.js4
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