diff --git a/bun.lockb b/bun.lockb index f5c170ab..a9cb2cb3 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/classes/database/emoji.ts b/classes/database/emoji.ts index 55158f2e..a3131af7 100644 --- a/classes/database/emoji.ts +++ b/classes/database/emoji.ts @@ -1,6 +1,6 @@ import { emojiValidatorWithColons, emojiValidatorWithIdentifiers } from "@/api"; import { proxyUrl } from "@/response"; -import type { Emoji as ApiEmoji } from "@versia/client/types"; +import type { Emoji as APIEmoji } from "@versia/client/types"; import type { CustomEmojiExtension } from "@versia/federation/types"; import { db } from "@versia/kit/db"; import { Emojis, Instances } from "@versia/kit/tables"; @@ -187,7 +187,7 @@ export class Emoji extends BaseInterface { ); } - public toApi(): ApiEmoji & { id: string } { + public toApi(): APIEmoji { return { id: this.id, shortcode: this.data.shortcode, @@ -195,6 +195,7 @@ export class Emoji extends BaseInterface { url: proxyUrl(this.data.url) ?? "", visible_in_picker: this.data.visibleInPicker, category: this.data.category ?? undefined, + global: this.data.ownerId === null, }; } diff --git a/package.json b/package.json index ba6c2438..302e2c5c 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "@oclif/core": "^4.0.33", "@sentry/bun": "^8.41.0", "@tufjs/canonical-json": "^2.0.0", - "@versia/client": "^0.1.1", + "@versia/client": "^0.1.2", "@versia/federation": "^0.1.4", "@versia/kit": "workspace:*", "altcha-lib": "^1.1.1",