try to fix oembed
This commit is contained in:
parent
cb9ed1931f
commit
c544741ef0
2 changed files with 34 additions and 8 deletions
|
@ -70,7 +70,7 @@ interface Instance {
|
|||
|
||||
const app = express();
|
||||
|
||||
type instace = {
|
||||
export type instace = {
|
||||
name: string;
|
||||
description?: string;
|
||||
descriptionLong?: string;
|
||||
|
@ -146,7 +146,7 @@ app.use("/getupdates", async (_req: Request, res: Response) => {
|
|||
});
|
||||
|
||||
app.use("/services/oembed", (req: Request, res: Response) => {
|
||||
inviteResponse(req, res);
|
||||
inviteResponse(req, res, instances);
|
||||
});
|
||||
|
||||
app.use("/uptime", (req: Request, res: Response) => {
|
||||
|
@ -159,7 +159,7 @@ app.use("/", async (req: Request, res: Response) => {
|
|||
const host = `${scheme}://${req.get("Host")}`;
|
||||
const ref = host + req.originalUrl;
|
||||
|
||||
if (host && ref && false) {
|
||||
if (host && ref) {
|
||||
const link = `${host}/services/oembed?url=${encodeURIComponent(ref)}`;
|
||||
res.set(
|
||||
"Link",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue