This commit is contained in:
Flummi
2021-12-29 16:26:44 +01:00
parent a87273cea0
commit 638edc7319
3 changed files with 228 additions and 227 deletions

View File

@@ -59,8 +59,8 @@ export default new class {
};
genLink(env) {
const link = [];
if(env.user) link.push("user", env.user);
if(env.tag) link.push("tag", env.tag);
if(env.user) link.push("user", env.user, env.type ?? 'f0cks');
if(env.mime.length > 2) link.push(env.mime);
if(env.page) link.push("p", env.page);
return link.join("/");