Skip to content

Commit

Permalink
fix: preview
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Apr 15, 2024
1 parent 6034308 commit 5c6edd0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/mx-space/event-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ export const handleEvent =
logger.error(`category not found, post id: ${id}`)
return
}
const simplePreview = summary

const url = await urlBuilder.build(payload as PostModel)
const message = `${
owner.name
} ${publishDescription}: ${title}\n\n${simplePreview}\n\n${
const message = `${owner.name} ${publishDescription}: ${title}\n\n${
summary ? `${summary}\n\n` : ''
}\n前往阅读:${url}`
await sendToGroup([
Expand Down

0 comments on commit 5c6edd0

Please sign in to comment.