summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--assets/openapi.json12
-rw-r--r--scripts/openapi.js12
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts8
3 files changed, 16 insertions, 16 deletions
diff --git a/assets/openapi.json b/assets/openapi.json
index fa220593..2db00047 100644
--- a/assets/openapi.json
+++ b/assets/openapi.json
@@ -1,8 +1,8 @@
 {
     "openapi": "3.1.0",
     "info": {
-        "title": "Fosscord Server",
-        "description": "Fosscord is a free open source selfhostable discord compatible chat, voice and video platform",
+        "title": "Spacebar Server",
+        "description": "Spacebar is a free open source selfhostable discord compatible chat, voice and video platform",
         "license": {
             "name": "AGPLV3",
             "url": "https://www.gnu.org/licenses/agpl-3.0.en.html"
@@ -10,13 +10,13 @@
         "version": "1.0.0"
     },
     "externalDocs": {
-        "description": "Fosscord Docs",
-        "url": "https://docs.fosscord.com"
+        "description": "Spacebar Docs",
+        "url": "https://docs.spacebar.chat"
     },
     "servers": [
         {
-            "url": "https://staging.fosscord.com/api/",
-            "description": "Official Fosscord Instance"
+            "url": "https://old.server.spacebar.chat/api/",
+            "description": "Official Spacebar Instance"
         }
     ],
     "components": {
diff --git a/scripts/openapi.js b/scripts/openapi.js
index abb40975..76025e4d 100644
--- a/scripts/openapi.js
+++ b/scripts/openapi.js
@@ -34,9 +34,9 @@ const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" }));
 let specification = {
 	openapi: "3.1.0",
 	info: {
-		title: "Fosscord Server",
+		title: "Spacebar Server",
 		description:
-			"Fosscord is a free open source selfhostable discord compatible chat, voice and video platform",
+			"Spacebar is a free open source selfhostable discord compatible chat, voice and video platform",
 		license: {
 			name: "AGPLV3",
 			url: "https://www.gnu.org/licenses/agpl-3.0.en.html",
@@ -44,13 +44,13 @@ let specification = {
 		version: "1.0.0",
 	},
 	externalDocs: {
-		description: "Fosscord Docs",
-		url: "https://docs.fosscord.com",
+		description: "Spacebar Docs",
+		url: "https://docs.spacebar.chat",
 	},
 	servers: [
 		{
-			url: "https://staging.fosscord.com/api/",
-			description: "Official Fosscord Instance",
+			url: "https://old.server.spacebar.chat/api/",
+			description: "Official Spacebar Instance",
 		},
 	],
 	components: {
diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts
index 551efb4e..811d2b4c 100644
--- a/src/api/routes/channels/#channel_id/messages/index.ts
+++ b/src/api/routes/channels/#channel_id/messages/index.ts
@@ -23,9 +23,7 @@ import {
 	ChannelType,
 	Config,
 	DmChannelDTO,
-	emitEvent,
 	FieldErrors,
-	getPermission,
 	Member,
 	Message,
 	MessageCreateEvent,
@@ -34,8 +32,10 @@ import {
 	ReadState,
 	Rights,
 	Snowflake,
-	uploadFile,
 	User,
+	emitEvent,
+	getPermission,
+	uploadFile,
 } from "@spacebar/util";
 import { Request, Response, Router } from "express";
 import { HTTPError } from "lambert-server";
@@ -178,7 +178,7 @@ router.get(
 					x.author = User.create({
 						id: "4",
 						discriminator: "0000",
-						username: "Fosscord Ghost",
+						username: "Spacebar Ghost",
 						public_flags: 0,
 					});
 				x.attachments?.forEach((y: Attachment) => {