This commit is contained in:
Puyodead1 2023-04-13 15:48:27 -04:00
parent 866eb15d90
commit 78d98f0244
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
3 changed files with 16 additions and 16 deletions

View File

@ -1,8 +1,8 @@
{ {
"openapi": "3.1.0", "openapi": "3.1.0",
"info": { "info": {
"title": "Fosscord Server", "title": "Spacebar Server",
"description": "Fosscord is a free open source selfhostable discord compatible chat, voice and video platform", "description": "Spacebar is a free open source selfhostable discord compatible chat, voice and video platform",
"license": { "license": {
"name": "AGPLV3", "name": "AGPLV3",
"url": "https://www.gnu.org/licenses/agpl-3.0.en.html" "url": "https://www.gnu.org/licenses/agpl-3.0.en.html"
@ -10,13 +10,13 @@
"version": "1.0.0" "version": "1.0.0"
}, },
"externalDocs": { "externalDocs": {
"description": "Fosscord Docs", "description": "Spacebar Docs",
"url": "https://docs.fosscord.com" "url": "https://docs.spacebar.chat"
}, },
"servers": [ "servers": [
{ {
"url": "https://staging.fosscord.com/api/", "url": "https://old.server.spacebar.chat/api/",
"description": "Official Fosscord Instance" "description": "Official Spacebar Instance"
} }
], ],
"components": { "components": {

View File

@ -34,9 +34,9 @@ const schemas = JSON.parse(fs.readFileSync(SchemaPath, { encoding: "utf8" }));
let specification = { let specification = {
openapi: "3.1.0", openapi: "3.1.0",
info: { info: {
title: "Fosscord Server", title: "Spacebar Server",
description: 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: { license: {
name: "AGPLV3", name: "AGPLV3",
url: "https://www.gnu.org/licenses/agpl-3.0.en.html", url: "https://www.gnu.org/licenses/agpl-3.0.en.html",
@ -44,13 +44,13 @@ let specification = {
version: "1.0.0", version: "1.0.0",
}, },
externalDocs: { externalDocs: {
description: "Fosscord Docs", description: "Spacebar Docs",
url: "https://docs.fosscord.com", url: "https://docs.spacebar.chat",
}, },
servers: [ servers: [
{ {
url: "https://staging.fosscord.com/api/", url: "https://old.server.spacebar.chat/api/",
description: "Official Fosscord Instance", description: "Official Spacebar Instance",
}, },
], ],
components: { components: {

View File

@ -23,9 +23,7 @@ import {
ChannelType, ChannelType,
Config, Config,
DmChannelDTO, DmChannelDTO,
emitEvent,
FieldErrors, FieldErrors,
getPermission,
Member, Member,
Message, Message,
MessageCreateEvent, MessageCreateEvent,
@ -34,8 +32,10 @@ import {
ReadState, ReadState,
Rights, Rights,
Snowflake, Snowflake,
uploadFile,
User, User,
emitEvent,
getPermission,
uploadFile,
} from "@spacebar/util"; } from "@spacebar/util";
import { Request, Response, Router } from "express"; import { Request, Response, Router } from "express";
import { HTTPError } from "lambert-server"; import { HTTPError } from "lambert-server";
@ -178,7 +178,7 @@ router.get(
x.author = User.create({ x.author = User.create({
id: "4", id: "4",
discriminator: "0000", discriminator: "0000",
username: "Fosscord Ghost", username: "Spacebar Ghost",
public_flags: 0, public_flags: 0,
}); });
x.attachments?.forEach((y: Attachment) => { x.attachments?.forEach((y: Attachment) => {