feat: add support for commenting and reacting on external content
This commit is contained in:
parent
5ba5c26fcd
commit
0bb62dd3fb
76 changed files with 1635 additions and 639 deletions
|
|
@ -6,6 +6,7 @@ import {
|
|||
LN_INVOICE_REGEX,
|
||||
URL_REGEX,
|
||||
WS_URL_REGEX,
|
||||
X_URL_REGEX,
|
||||
YOUTUBE_URL_REGEX
|
||||
} from '@/constants'
|
||||
import { isImage, isMedia } from './url'
|
||||
|
|
@ -24,6 +25,7 @@ export type TEmbeddedNodeType =
|
|||
| 'emoji'
|
||||
| 'invoice'
|
||||
| 'youtube'
|
||||
| 'x-post'
|
||||
|
||||
export type TEmbeddedNode =
|
||||
| {
|
||||
|
|
@ -96,6 +98,8 @@ export const EmbeddedUrlParser: TContentParser = (content: string) => {
|
|||
type = 'media'
|
||||
} else if (url.match(YOUTUBE_URL_REGEX)) {
|
||||
type = 'youtube'
|
||||
} else if (url.match(X_URL_REGEX)) {
|
||||
type = 'x-post'
|
||||
}
|
||||
|
||||
// Add the match as specific type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue