mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-05 04:26:50 -07:00
Fixed: Escape backticks in discord notifications
(cherry picked from commit 70c74fc1769f2094a14faaa103c49d744534be9f)
This commit is contained in:
parent
96f956a5d6
commit
ed777de015
1 changed files with 2 additions and 2 deletions
|
@ -514,9 +514,9 @@ namespace NzbDrone.Core.Notifications.Discord
|
|||
{
|
||||
var albumTitles = string.Join(" + ", albums.Select(e => e.Title));
|
||||
|
||||
var title = $"{artist.Name} - {albumTitles}";
|
||||
var title = $"{artist.Name} - {albumTitles}".Replace("`", "\\`");
|
||||
|
||||
return title.Length > 256 ? $"{title.AsSpan(0, 253)}..." : title;
|
||||
return title.Length > 256 ? $"{title.AsSpan(0, 253).TrimEnd('\\')}..." : title;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue