Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/utils/hack-night.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ ${topContributors
}

// TODO(@rayhanadev): upload all these images to the Sanity project
// TODO(@rayhanadev): filter out files that are not images
const images = [...attachments.map((a) => a.url)];
const images = attachments
.filter((a) => a.contentType && (a.contentType.startsWith('image/') || a.contentType.startsWith('video/')))
.map((a) => a.url);

await starterMessage.unpin();
await hackNightImageThread.setLocked(true);
Expand Down