fix: chat accepts posts
This commit is contained in:
@@ -18,6 +18,7 @@ import { LinkPreviewCard } from "@/components/chat/link-preview-card";
|
||||
import { MediaGrid } from "@/components/chat/media-grid";
|
||||
import { MediaLightbox } from "@/components/chat/media-lightbox";
|
||||
import { QuoteCard } from "@/components/chat/quote-card";
|
||||
import { SharedPostCard } from "@/components/chat/shared-post-card";
|
||||
import { attachmentUrl, type Attachment } from "@/lib/chat";
|
||||
|
||||
function humanSize(bytes?: number | null): string {
|
||||
@@ -58,6 +59,9 @@ export function MessageAttachments({
|
||||
|
||||
{rest.map((a) => {
|
||||
switch (a.kind) {
|
||||
case "entity":
|
||||
return <SharedPostCard key={a.id} attachment={a} />;
|
||||
|
||||
case "quote":
|
||||
return <QuoteCard key={a.id} attachment={a} />;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user