diff --git a/CHANGELOG.md b/CHANGELOG.md index c35758e..5df23be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic ### Changed - Verify action texting +- Thumbnail image ### Fixed - App icon url in the action metadata diff --git a/public/thumbnail.jpg b/public/thumbnail.jpg deleted file mode 100644 index 7cc7a74..0000000 Binary files a/public/thumbnail.jpg and /dev/null differ diff --git a/public/thumbnail.png b/public/thumbnail.png new file mode 100644 index 0000000..ab32f13 Binary files /dev/null and b/public/thumbnail.png differ diff --git a/src/actions/verify.ts b/src/actions/verify.ts index 4f8abdf..fd4823f 100644 --- a/src/actions/verify.ts +++ b/src/actions/verify.ts @@ -6,10 +6,15 @@ import { MessageFlags, } from '@collabland/discord' import { DiscordActionRequest } from '@collabland/discord' +import { join } from 'path' import { config } from '@/config' export const handleVerifyAction = async (interaction: DiscordActionRequest) => { + const host = config.appUrl.includes('localhost') + ? 'https://collabland.robotornot.mainnet-beta.rarimo.com' + : config.appUrl + const response: APIInteractionResponse = { type: InteractionResponseType.ChannelMessageWithSource, data: { @@ -35,7 +40,7 @@ export const handleVerifyAction = async (interaction: DiscordActionRequest) => { ], // https://gist.github.com/thomasbnt/b6f455e2c7d743b796917fa3c205f812 color: 3447003, - image: { url: 'https://rarimo.com/img/branding/og-img.jpg', height: 256, width: 512 }, + image: { url: join(host, '/thumbnail.png'), height: 512, width: 896 }, }, ], components: [