mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🔒 Properly proxy role icons through media proxy
This commit is contained in:
parent
3d1cc52d14
commit
b17b2be683
3 changed files with 5 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { proxyUrl } from "@/response";
|
||||
import { config } from "config-manager";
|
||||
import {
|
||||
type InferInsertModel,
|
||||
|
|
@ -159,7 +160,7 @@ export class Role {
|
|||
priority: this.role.priority,
|
||||
description: this.role.description,
|
||||
visible: this.role.visible,
|
||||
icon: this.role.icon,
|
||||
icon: proxyUrl(this.role.icon),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue