feat: allow disabling click to view

This commit is contained in:
Xylight committed 2023-11-27 18:25:03 -08:00
1 parent eeca5a826a
commit 0a3c5c8d97
5 files changed
+53 -9

No files matched your search

+1 -1
View File
@@ -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) {