mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
spacebar
This commit is contained in:
parent
866eb15d90
commit
78d98f0244
@ -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": {
|
||||
|
@ -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: {
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user