Skip to content

Commit

Permalink
fix(image-search): use segment.image() instead of file
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 27, 2021
1 parent bfe25c1 commit ff82bd6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/plugin-image-search/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ export interface ShareData {
}

export function getShareText({ imageUrl, title, thumbnail, authorUrl, source }: ShareData) {
const output = [
title,
segment('image', { file: thumbnail }),
]
const output = [title, segment.image(thumbnail)]
if (imageUrl) output.push(`链接:${getLink(imageUrl)}`)
if (authorUrl) output.push(`作者:${getLink(authorUrl)}`)
if (source) output.push(`来源:${getLink(source)}`)
Expand Down

0 comments on commit ff82bd6

Please sign in to comment.