summaryrefslogtreecommitdiff
path: root/src/models/Event.ts
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2024-02-26 15:06:01 +0000
committerGitHub <noreply@github.com>2024-02-26 15:06:01 +0000
commitde688444d167fdb80c6e88b8ba837405ba7651a6 (patch)
tree051fa37a2fe30052254bf79a60bd870667fcc0b7 /src/models/Event.ts
parentafd9fc4477fff90e5db917f350d99c3d01fba2bd (diff)
parent1275280a9e3a31f6080079d564a8fb9e1847db8b (diff)
Merge pull request #135 from lowercasename/rk/public-events
Events and groups optionally visible on front page
Diffstat (limited to 'src/models/Event.ts')
-rw-r--r--src/models/Event.ts5
1 files changed, 5 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);