mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix: sanitize server text in pull request messages, auth status and notification watch
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
4 files changed
+9
-5
No files matched your search
@@ -400,9 +400,9 @@ func watchLine(item services.Notification, d terminal.Display) string {
|
||||
when = d.Now
|
||||
}
|
||||
subject := subjectRef(item)
|
||||
details := strings.ToLower(item.Type)
|
||||
details := terminal.SafeLine(strings.ToLower(item.Type))
|
||||
if item.State != "" {
|
||||
details += " · " + terminal.Colorize(stateColors[item.State], item.State, d.Color)
|
||||
details += " · " + terminal.Colorize(stateColors[item.State], terminal.SafeLine(item.State), d.Color)
|
||||
}
|
||||
return terminal.Colorize("muted", when.Local().Format("15:04"), d.Color) + " " + terminal.Emphasis(terminal.SafeLine(subject), d.Color) + " " + terminal.SafeLine(item.Title) + " " + details
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user