Fall back to alt tag

This commit is contained in:
Jon Staab 2023-11-21 15:08:48 -08:00
parent f63fb34bbf
commit 7cf688ea24

View File

@ -1,5 +1,5 @@
import {last, pluck, identity} from "ramda"
import {fromNostrURI} from "paravel"
import {fromNostrURI, Tags} from "paravel"
import {nip19} from "nostr-tools"
import {first, switcherFn} from "hurdak"
@ -20,7 +20,7 @@ export const urlIsMedia = (url: string) =>
export const parseContent = ({content, tags = []}: {content: string; tags?: string[][]}) => {
const result: any[] = []
let text = content.trim()
let text = content.trim() || new Tags(tags).getValue('alt') || ""
let buffer = ""
const parseNewline = () => {