mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
Move Lemmy federation context to join-lemmy.org (#285)
* Move Lemmy federation context to join-lemmy.org Ref https://github.com/LemmyNet/lemmy/issues/4234 * add missing file
This commit is contained in:
parent
24e1b3e06e
commit
d3e282abfb
2 changed files with 29 additions and 0 deletions
25
src/assets/lemmy_federation_context.json
Normal file
25
src/assets/lemmy_federation_context.json
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
[
|
||||||
|
"https://www.w3.org/ns/activitystreams",
|
||||||
|
"https://w3id.org/security/v1",
|
||||||
|
{
|
||||||
|
"lemmy": "https://join-lemmy.org/ns#",
|
||||||
|
"litepub": "http://litepub.social/ns#",
|
||||||
|
"pt": "https://joinpeertube.org/ns#",
|
||||||
|
"sc": "http://schema.org/",
|
||||||
|
"ChatMessage": "litepub:ChatMessage",
|
||||||
|
"commentsEnabled": "pt:commentsEnabled",
|
||||||
|
"sensitive": "as:sensitive",
|
||||||
|
"matrixUserId": "lemmy:matrixUserId",
|
||||||
|
"postingRestrictedToMods": "lemmy:postingRestrictedToMods",
|
||||||
|
"removeData": "lemmy:removeData",
|
||||||
|
"stickied": "lemmy:stickied",
|
||||||
|
"moderators": {
|
||||||
|
"@type": "@id",
|
||||||
|
"@id": "lemmy:moderators"
|
||||||
|
},
|
||||||
|
"expires": "as:endTime",
|
||||||
|
"distinguished": "lemmy:distinguished",
|
||||||
|
"language": "sc:inLanguage",
|
||||||
|
"identifier": "sc:identifier"
|
||||||
|
}
|
||||||
|
]
|
|
@ -17,6 +17,10 @@ server.use(express.urlencoded({ extended: false }) as RequestHandler);
|
||||||
server.use("/static", express.static(path.resolve("./dist")));
|
server.use("/static", express.static(path.resolve("./dist")));
|
||||||
server.use("/docs", express.static(path.resolve("./dist/assets/docs")));
|
server.use("/docs", express.static(path.resolve("./dist/assets/docs")));
|
||||||
server.use("/api", express.static(path.resolve("./dist/assets/api")));
|
server.use("/api", express.static(path.resolve("./dist/assets/api")));
|
||||||
|
server.use(
|
||||||
|
"/context.json",
|
||||||
|
express.static(path.resolve("./dist/assets/lemmy_federation_context.json")),
|
||||||
|
);
|
||||||
server.use("/feed.xml", express.static(path.resolve("./dist/feed.xml")));
|
server.use("/feed.xml", express.static(path.resolve("./dist/feed.xml")));
|
||||||
|
|
||||||
function erudaInit(): string {
|
function erudaInit(): string {
|
||||||
|
|
Loading…
Reference in a new issue