Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/DiscordChatExporter/commit/a41a4ca8a7e3031bbf01cc9b5473f184a70eb714?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

[HTML] Fix occasionally wrong user colors

pull/285/head
Alexey Golub 5 years ago
parent c098f4b137
commit a41a4ca8a7

@ -43,6 +43,7 @@ namespace DiscordChatExporter.Core.Models
.Select(r => guild.Roles.FirstOrDefault(role => r == role.Id)) .Select(r => guild.Roles.FirstOrDefault(role => r == role.Id))
.Where(r => r != null) .Where(r => r != null)
.Where(r => r.Color != Color.Black) .Where(r => r.Color != Color.Black)
.Where(r => r.Color.R + r.Color.G + r.Color.B > 0)
.Aggregate<Role, Role?>(null, (a, b) => (a?.Position ?? 0) > b.Position ? a : b) .Aggregate<Role, Role?>(null, (a, b) => (a?.Position ?? 0) > b.Position ? a : b)
?.ColorAsHex ?? ""; ?.ColorAsHex ?? "";

Loading…
Cancel
Save