アニメーション画像を無効にする際、サーバーサイドではなくクライアントサイドでURLを変更するように
This commit is contained in:
parent
f014b7ae0e
commit
861302f0fd
14 changed files with 40 additions and 56 deletions
|
@ -65,5 +65,5 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
|||
sort: sort
|
||||
});
|
||||
|
||||
res(await packMany(files, { self: true, me: user }));
|
||||
res(await packMany(files, { self: true }));
|
||||
}));
|
||||
|
|
|
@ -11,7 +11,6 @@ import { IImage, ConvertToPng } from '../../services/drive/image-processor';
|
|||
|
||||
export async function proxyMedia(ctx: Koa.BaseContext) {
|
||||
const url = 'url' in ctx.query ? ctx.query.url : 'https://' + ctx.params.url;
|
||||
console.log(url);
|
||||
|
||||
// Create temp file
|
||||
const [path, cleanup] = await new Promise<[string, any]>((res, rej) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue