Skip to content

Commit

Permalink
Prioritize not dropping media
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Oct 1, 2024
1 parent c36b444 commit 004b2bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ async function resolveEmbed(
| AppBskyEmbedRecordWithMedia.Main
| undefined
> {
if (opts.extLink?.embed) {
return opts.extLink.embed
}
const media = await resolveMedia(agent, opts)
if (opts.quote) {
const quoteRecord = {
Expand All @@ -216,6 +213,9 @@ async function resolveEmbed(
if (media) {
return media
}
if (opts.extLink?.embed) {
return opts.extLink.embed
}
return undefined
}

Expand Down

0 comments on commit 004b2bd

Please sign in to comment.