Skip to content

Commit 4a83ffe

Browse files
committed
Фильтр обработанных вложений
1 parent f4beb93 commit 4a83ffe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/Attachments.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export class Attachments {
6767
case "album":
6868
return `\n[🖼️ Альбом: ${album.title}](https://vk.com/album${album.owner_id}_${album.id})`;
6969
}
70-
}) as ParsedAttachments
70+
})
71+
.filter((attachment) => attachment) as ParsedAttachments
7172
)
7273
.sort((a, b) => b.length - a.length);
7374

0 commit comments

Comments
 (0)