mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix: tweet with no text failed to save
This commit is contained in:
parent
937be20928
commit
607e22ce94
1 changed files with 2 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ export class NitterHandler extends ContentHandler {
|
|||
'_normal',
|
||||
'_400x400'
|
||||
)}`
|
||||
const description = _.escape(tweet.text)
|
||||
const description = _.escape(tweet.text) || escapedTitle
|
||||
const imageDomain =
|
||||
domain.toLowerCase() === 'twitter.com'
|
||||
? 'https://pbs.twimg.com'
|
||||
|
|
@ -402,6 +402,7 @@ export class NitterHandler extends ContentHandler {
|
|||
<meta property="og:site_name" content="Twitter" />
|
||||
<meta property="og:type" content="tweet" />
|
||||
<meta property="dc:creator" content="${author.name}" />
|
||||
<meta property="twitter:description" content="${description}" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="_omnivore_twitter">
|
||||
|
|
|
|||
Loading…
Reference in a new issue