We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce83c2 commit a6f84afCopy full SHA for a6f84af
lib/slack.ts
@@ -135,7 +135,8 @@ export async function handleUnfurl(req: NextApiRequest, res: NextApiResponse) {
135
[url]: {
136
mrkdwn_in: ["author_name", "text", "footer"],
137
fallback: `https://news.ycombinator.com/item?id=${post.id}`,
138
- author_name: `New <https://news.ycombinator.com/item?id=${post.id}|${post.type}> from <https://news.ycombinator.com/user?id=${post.by}|${post.by}>`,
+ author_name: `New ${post.type} from ${post.by}`,
139
+ author_link: `https://news.ycombinator.com/item?id=${post.id}`,
140
author_icon: `https://ui-avatars.com/api/?name=${post.by}&background=random`,
141
...(post.title && {
142
title: post.title,
0 commit comments