mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 08:05:29 +00:00
Remove ALL fosscord mentions
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Config, Embed, EmbedType } from "@fosscord/util";
|
||||
import { Config, Embed, EmbedType } from "@spacebar/util";
|
||||
import fetch, { RequestInit } from "node-fetch";
|
||||
import * as cheerio from "cheerio";
|
||||
import probe from "probe-image-size";
|
||||
@@ -28,7 +28,7 @@ export const DEFAULT_FETCH_OPTIONS: RequestInit = {
|
||||
follow: 1,
|
||||
headers: {
|
||||
"user-agent":
|
||||
"Mozilla/5.0 (compatible; Fosscord/1.0; +https://github.com/fosscord/fosscord)",
|
||||
"Mozilla/5.0 (compatible; Spacebar/1.0; +https://github.com/spacebarchat/server)",
|
||||
},
|
||||
// size: 1024 * 1024 * 5, // grabbed from config later
|
||||
compress: true,
|
||||
@@ -67,7 +67,7 @@ export const getProxyUrl = (
|
||||
console.log(
|
||||
"[Embeds]",
|
||||
yellow(
|
||||
"Imagor has not been set up correctly. https://docs.fosscord.com/setup/server/configuration/imagor/",
|
||||
"Imagor has not been set up correctly. https://docs.spacebar.chat/setup/server/configuration/imagor/",
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Snowflake } from "@fosscord/util";
|
||||
import { Snowflake } from "@spacebar/util";
|
||||
import crypto from "crypto";
|
||||
|
||||
// TODO: 'random'? seriously? who named this?
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { Request } from "express";
|
||||
import { ntob } from "./Base64";
|
||||
import { FieldErrors } from "@fosscord/util";
|
||||
import { FieldErrors } from "@spacebar/util";
|
||||
|
||||
export function checkLength(
|
||||
str: string,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Config } from "@fosscord/util";
|
||||
import { Config } from "@spacebar/util";
|
||||
import fetch from "node-fetch";
|
||||
|
||||
export interface hcaptchaResponse {
|
||||
@@ -49,7 +49,7 @@ export async function verifyCaptcha(response: string, ip?: string) {
|
||||
|
||||
if (!service || !secret || !sitekey)
|
||||
throw new Error(
|
||||
"CAPTCHA is not configured correctly. https://docs.fosscord.com/setup/server/security/captcha/",
|
||||
"CAPTCHA is not configured correctly. https://docs.spacebar.chat/setup/server/security/captcha/",
|
||||
);
|
||||
|
||||
const res = await fetch(verifyEndpoints[service], {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Config } from "@fosscord/util";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { Request } from "express";
|
||||
// use ipdata package instead of simple fetch because of integrated caching
|
||||
import fetch from "node-fetch";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Config } from "@fosscord/util";
|
||||
import { Config } from "@spacebar/util";
|
||||
import "missing-native-js-functions";
|
||||
|
||||
const reNUMBER = /[0-9]/g;
|
||||
|
||||
Reference in New Issue
Block a user