Merge branch 'develop' into merge/2024-02-03
# Conflicts: # packages/backend/src/server/ActivityPubServerService.ts # pnpm-lock.yaml
This commit is contained in:
commit
7e1b4b259a
18 changed files with 727 additions and 689 deletions
|
|
@ -8,7 +8,7 @@
|
|||
* https://en.wikipedia.org/wiki/Identicon
|
||||
*/
|
||||
|
||||
import { createCanvas } from '@napi-rs/canvas';
|
||||
import { createCanvas } from 'canvas';
|
||||
import gen from 'random-seed';
|
||||
|
||||
const size = 128; // px
|
||||
|
|
@ -100,5 +100,5 @@ export async function genIdenticon(seed: string): Promise<Buffer> {
|
|||
}
|
||||
}
|
||||
|
||||
return await canvas.encode('png');
|
||||
return await canvas.toBuffer('image/png');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue