simplify
This commit is contained in:
@@ -84,9 +84,8 @@ export function getStarterPackOgCard(
|
|||||||
) {
|
) {
|
||||||
if (typeof didOrStarterPack === 'string') {
|
if (typeof didOrStarterPack === 'string') {
|
||||||
// Used for link embeds so that we always keep the image up to date rather than using the uploaded one.
|
// Used for link embeds so that we always keep the image up to date rather than using the uploaded one.
|
||||||
if (didOrStarterPack.startsWith('https://')) {
|
const parsed = parseStarterPackUri(didOrStarterPack)
|
||||||
const parsed = parseStarterPackUri(didOrStarterPack)
|
if (parsed) {
|
||||||
if (!parsed) return null
|
|
||||||
return getStarterPackOgCard(parsed?.name, parsed?.rkey)
|
return getStarterPackOgCard(parsed?.name, parsed?.rkey)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user