fix: shrink text

This commit is contained in:
Saahil 2025-04-19 09:15:06 -04:00
parent 13cd9bf8b4
commit f5d06736e1
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -139,14 +139,14 @@ export async function shipUpdatesCron(app: ModifiedApp) {
channel: `C08N1NWKEF4`,
thread_ts: entry.root_message,
reply_broadcast: true,
text: update.text || "no update text huh",
text: update.text.slice(0,3000) || "no update text huh",
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
// TODO add the ping back
text: `:tada: *New Update!*\n_${update.text}_ by <@${update.slack_id}>`,
text: `:tada: *New Update!*by <@${update.slack_id}> \n${update.text.slice(0,2900)}`,
},
},
// add image
@ -163,14 +163,14 @@ export async function shipUpdatesCron(app: ModifiedApp) {
channel: `C08N1NWKEF4`,
thread_ts: entry.root_message,
reply_broadcast: true,
text: update.text || "no update text huh",
text: update.text.slice(0,3000) || "no update text huh",
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
// TODO add the ping back
text: `:tada: *New Update!*\n_${update.text}_ by <@${update.slack_id}>`,
text: `:tada: *New Update!*by <@${update.slack_id}> \n${update.text.slice(0,2900)}`,
},
},
].filter(Boolean),