Skip to content

Commit

Permalink
Update tweet wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrisbattarbee committed Apr 5, 2024
1 parent 540c2fa commit f633999
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions common/jobs/twitter_post/twitter_post_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,11 @@ func generateTweet(db *db.DbClient, incident api.Incident) (string, error) {
return "", errors.Wrap(err, "failed to get status page")
}
// Tweet format
// {Status page Name} Incident
// {Incident Title}
// {Incident Description}
// {Status page Name} Incident - Is {Status page Name} down?
// {Incident Deep Link}
// https://metoro.io/statusphere/status/{statusPageName}

if incident.Description == nil {
incident.Description = new(string)
}

tweet := fmt.Sprintf(`🔥 %s Incident - Is %s down? 🔥\r\rTitle: %s\r\rDescription: %s\r\rIncident Deeplink: %s\r\rStatusphere: https://metoro.io/statusphere/status/%s\r\r#outage #incident`, statusPage.Name, statusPage.Name, incident.Title, *incident.Description, incident.DeepLink, statusPage.Name)
tweet := fmt.Sprintf(`🔥 %s Incident - Is %s down? 🔥\r\rTitle: %s\r\rIncident Deeplink: %s\r\rStatusphere: https://metoro.io/statusphere/status/%s\r\r#outage #incident`, statusPage.Name, statusPage.Name, incident.Title, incident.DeepLink, statusPage.Name)

return tweet, nil
}
Expand Down

0 comments on commit f633999

Please sign in to comment.