feat: allow disabling click to view
This commit is contained in:
1 parent
eeca5a826a
commit
0a3c5c8d97
5 files changed
+53
-9
No files matched your search
@@ -38,7 +38,7 @@ export const isYoutubeLink = (url?: string): boolean => {
|
||||
export const postLink = (post: Post) => `/post/${getInstance()}/${post.id}`
|
||||
|
||||
export type MediaType = 'video' | 'image' | 'iframe' | 'embed' | 'none'
|
||||
export type IframeType = 'youtube'
|
||||
export type IframeType = 'youtube' | 'none'
|
||||
|
||||
export const mediaType = (post: Post, view: View = 'cozy'): MediaType => {
|
||||
if (post.url) {
|
||||
|
||||
Reference in new issue
Block a user