Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6f84af

Browse filesBrowse files
committed
fix broken title with fallback option
1 parent 6ce83c2 commit a6f84af
Copy full SHA for a6f84af

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/slack.ts

Copy file name to clipboardExpand all lines: lib/slack.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ export async function handleUnfurl(req: NextApiRequest, res: NextApiResponse) {
135135
[url]: {
136136
mrkdwn_in: ["author_name", "text", "footer"],
137137
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}>`,
138+
author_name: `New ${post.type} from ${post.by}`,
139+
author_link: `https://news.ycombinator.com/item?id=${post.id}`,
139140
author_icon: `https://ui-avatars.com/api/?name=${post.by}&background=random`,
140141
...(post.title && {
141142
title: post.title,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.