Skip to content

Commit

Permalink
Don't use `` in njump links
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed May 30, 2024
1 parent 571fe08 commit db28082
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lib/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ if (!process.env.CHANNEL_ID) {
const token = process.env.SLACK_TOKEN;
const channelId = process.env.CHANNEL_ID;
const web = new WebClient(token);

const code = (string) => `\`${string}\``;
export default class Slack {
// Check https://app.slack.com/block-kit-builder
static async postManualVerification(reportRequest) {
Expand All @@ -31,11 +33,11 @@ export default class Slack {
}

static createSlackMessagePayload(reportRequest) {
let text = `New Nostr Event to moderate requested by \`${
reportRequest.njump || reportRequest.reporterNpub()
}\` reporting an event published by \`${
reportRequest.reportedUserNjump || reportRequest.reportedNpub()
}\``;
let text = `New Nostr Event to moderate requested by ${
reportRequest.njump || code(reportRequest.reporterNpub())
} reporting an event published by ${
reportRequest.reportedUserNjump || code(reportRequest.reportedNpub())
}`;

const elements = Object.entries(OPENAI_CATEGORIES).map(
([category, categoryData]) => {
Expand Down

0 comments on commit db28082

Please sign in to comment.