Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR] Update time format in email #29

Merged
merged 2 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion database/abuseemail.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Please verify the link is not corrupted as we need it in order to prevent access
sb.WriteString("Hello,\n\n")

if len(blocked) > 0 {
sb.WriteString(fmt.Sprintf("the following links were identified and blocked on all of our servers as of %v\n\n", a.BlockedAt.Format(time.RFC3339)))
sb.WriteString(fmt.Sprintf("the following links were identified and blocked on all of our servers as of %v\n\n", a.BlockedAt.Format(time.RFC1123)))
for _, skylink := range blocked {
sb.WriteString(fmt.Sprintf("- %s\n", skylink))
}
Expand Down
6 changes: 3 additions & 3 deletions database/abuseemail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Therefore we are not to be held accountable for any potential abusive content it
We will, however, do everything in our power to block access from said content when it gets reported.

Thank you for your report.
`, blockedAt.Format(time.RFC3339))
`, blockedAt.Format(time.RFC1123))

// assert it's identical
actual := email.String()
Expand Down Expand Up @@ -184,7 +184,7 @@ Therefore we are not to be held accountable for any potential abusive content it
We will, however, do everything in our power to block access from said content when it gets reported.

Thank you for your report.
`, blockedAt.Format(time.RFC3339))
`, blockedAt.Format(time.RFC1123))

// assert it's identical
actual = email.response()
Expand Down Expand Up @@ -212,7 +212,7 @@ Therefore we are not to be held accountable for any potential abusive content it
We will, however, do everything in our power to block access from said content when it gets reported.

Thank you for your report.
`, blockedAt.Format(time.RFC3339))
`, blockedAt.Format(time.RFC1123))

// assert it's identical
actual = email.response()
Expand Down