Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
feat: Add subreddit name to reddit data from API response.
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjuaneight committed Jan 24, 2022
1 parent ddd9c21 commit 3dedb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bookmark-reddits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const getRedditDetails = async (url: string): Promise<RedditData> => {
post.selftext ||
post.media.reddit_video.fallback_url?.replace('?source=fallback', '') ||
post.url_overridden_by_dest,
subreddit: `r/${post.subreddit}`,
subreddit: post.subreddit_name_prefixed,
url,
};
} catch (error) {
Expand Down

0 comments on commit 3dedb50

Please sign in to comment.