fix: update discord notification url to use server base configuration
This commit is contained in:
parent
9c77628962
commit
f854c6ea67
1 changed files with 1 additions and 1 deletions
|
|
@ -486,7 +486,7 @@ export default new Elysia({ prefix: "/post" })
|
|||
if (savedCount > 0) {
|
||||
await sendDiscordNotification({
|
||||
title: tweetData.tweet.text?.substring(0, 100) || "Twitter Post",
|
||||
url: savedIds[0] ? `${config.base_url}/detail/${savedIds[0]}` : body.url,
|
||||
url: savedIds[0] ? `${config.server.base_url}/detail/${savedIds[0]}` : body.url,
|
||||
author: body.author ? body.author : tweetData.tweet.author.name,
|
||||
tags: normalizedTags,
|
||||
imageUrl: media[0].url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue