mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-29 08:21:20 +00:00
Fall back to alt tag
This commit is contained in:
parent
f63fb34bbf
commit
7cf688ea24
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user