summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2019-12-11 18:11:09 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2019-12-11 18:11:09 -0800
commit5faad9ea56dcf2d715c9e11e07490f50115d25bb (patch)
treea9816a1fa77b8784e8a22120a7ae9715e01a8aa8 /models
parent0c46e2d2d148efb7cfabcf82c12266a8d788f551 (diff)
First pass at federation!
Diffstat (limited to 'models')
-rwxr-xr-xmodels/Event.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/models/Event.js b/models/Event.js
index 3c0bb8c..1de6088 100755
--- a/models/Event.js
+++ b/models/Event.js
@@ -159,7 +159,19 @@ const EventSchema = new mongoose.Schema({
maxAttendees: {
type: Number
},
- comments: [CommentSchema]
+ comments: [CommentSchema],
+ activityPubActor: {
+ type: String,
+ trim: true
+ },
+ publicKey: {
+ type: String,
+ trim: true
+ },
+ privateKey: {
+ type: String,
+ trim: true
+ }
});
module.exports = mongoose.model('Event', EventSchema);