Skip to content

Commit f633999

Browse files
Update tweet wording
1 parent 540c2fa commit f633999

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

common/jobs/twitter_post/twitter_post_worker.go

+2-8
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,11 @@ func generateTweet(db *db.DbClient, incident api.Incident) (string, error) {
6767
return "", errors.Wrap(err, "failed to get status page")
6868
}
6969
// Tweet format
70-
// {Status page Name} Incident
71-
// {Incident Title}
72-
// {Incident Description}
70+
// {Status page Name} Incident - Is {Status page Name} down?
7371
// {Incident Deep Link}
7472
// https://metoro.io/statusphere/status/{statusPageName}
7573

76-
if incident.Description == nil {
77-
incident.Description = new(string)
78-
}
79-
80-
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)
74+
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)
8175

8276
return tweet, nil
8377
}

0 commit comments

Comments
 (0)