alpha
Login
or
Join now
dunkirk.sh
/
smokie
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
feat: add pretty take video title
author
Kieran Klukas
date
1 year ago
(Apr 3, 2025, 8:13 PM -0400)
commit
aa18290a
aa18290adb07a4878ec5c840fc4726dcdf077c84
parent
381ee8a0
381ee8a08de9266dc4f73d726017d310ea712b38
+3
-3
1 changed file
Expand all
Collapse all
Unified
Split
src
features
takes
services
upload.ts
+3
-3
src/features/takes/services/upload.ts
Reviewed
···
125
125
title_url: `${process.env.API_URL}/api/video/${take.id}`,
126
126
title: {
127
127
type: "plain_text",
128
128
-
text: `takes from ${takeUploadedAt?.toISOString()}`,
128
128
+
text: `takes from ${takeUploadedAt?.toLocaleString("en-CA", { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hour12: false })}`,
129
129
},
130
130
thumbnail_url: `https://cachet.dunkirk.sh/users/${payload.user}/r`,
131
131
-
alt_text: `takes from ${takeUploadedAt?.toISOString()}`,
131
131
+
alt_text: `takes from ${takeUploadedAt?.toLocaleString("en-CA", { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hour12: false })} uploaded with the description: *${take.description}*`,
132
132
},
133
133
{
134
134
type: "divider",
···
275
275
await slackClient.chat.postMessage({
276
276
channel: payload.user.id,
277
277
thread_ts: take[0]?.ts as string,
278
278
-
text: `take approved with multiplier \`${multiplier}\` so you have earned *${Number((takeToApprove.elapsedTimeMs * Number(multiplier)) / 60).toFixed(1)} takes*!`,
278
278
+
text: `take approved with multiplier \`${multiplier}\` so you have earned *${Number((takeToApprove.elapsedTimeMs * Number(multiplier)) / 1000 / 60).toFixed(1)} takes*!`,
279
279
});
280
280
281
281
// delete the message from the review channel