Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Thread Reader App link and the end #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: add Thread Reader App link and the end
  • Loading branch information
jellydn authored Nov 18, 2022
commit ffe9efe78710ce260464829dd5fb1a7973dd83f1
6 changes: 5 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export const buildMarkdown = async (
markdown = markdown.map(line => '> ' + line)
}

// add original tweet link to end of tweet if not a condensed thread
// add original tweet link and Thread Reader App link to end of tweet if not a condensed thread
if (
!(options.condensedThread || options.semicondensedThread) &&
!options.textOnly
Expand All @@ -574,6 +574,10 @@ export const buildMarkdown = async (
'\n\n' +
`[Tweet link](https://twitter.com/${user.username}/status/${tweet.data.id})`
)
markdown.push(
'\n\n' +
`[Thread by @${user.username} on Thread Reader App – Thread Reader App](https://threadreaderapp.com/thread/${tweet.data.id}.html)`
)
}

switch (type) {
Expand Down