diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-25 21:34:33 +0000 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-26 00:11:03 +0000 |
commit | b3c9cba6478dc16d135313aa6d0adcc02d67ece6 (patch) | |
tree | 508ef236dc805b950fedeeca7f8dd3559d66a162 /src/models | |
parent | afd9fc4477fff90e5db917f350d99c3d01fba2bd (diff) |
feat: optional public events/groups
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Event.ts | 5 | ||||
-rwxr-xr-x | src/models/EventGroup.ts | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/models/Event.ts b/src/models/Event.ts index f67d40b..5731680 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts @@ -73,6 +73,7 @@ export interface IEvent extends mongoose.Document { privateKey?: string; followers?: IFollower[]; activityPubMessages?: IActivityPubMessage[]; + showOnPublicList?: boolean; } const Attendees = new mongoose.Schema({ @@ -334,6 +335,10 @@ const EventSchema = new mongoose.Schema({ }, followers: [Followers], activityPubMessages: [ActivityPubMessages], + showOnPublicList: { + type: Boolean, + default: false, + }, }); export default mongoose.model<IEvent>("Event", EventSchema); diff --git a/src/models/EventGroup.ts b/src/models/EventGroup.ts index 2b5c2aa..de7187d 100755 --- a/src/models/EventGroup.ts +++ b/src/models/EventGroup.ts @@ -16,6 +16,7 @@ export interface IEventGroup extends mongoose.Document { firstLoad?: boolean; events?: mongoose.Types.ObjectId[]; subscribers?: ISubscriber[]; + showOnPublicList?: boolean; } const Subscriber = new mongoose.Schema({ @@ -70,6 +71,10 @@ const EventGroupSchema = new mongoose.Schema({ }, events: [{ type: mongoose.Schema.Types.ObjectId, ref: "Event" }], subscribers: [Subscriber], + showOnPublicList: { + type: Boolean, + default: false, + }, }); export default mongoose.model<IEventGroup>("EventGroup", EventGroupSchema); |