fix: check for attachments in pk;system banner

This commit is contained in:
spiral 2021-12-23 22:49:15 -05:00
parent 9ab1a873e5
commit ec027f0366
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -411,7 +411,7 @@ public class SystemEdit
{ {
var isOwnSystem = target.Id == ctx.System?.Id; var isOwnSystem = target.Id == ctx.System?.Id;
if (!ctx.HasNext()) if (!ctx.HasNext() && ctx.Message.Attachments.Length == 0)
{ {
if ((target.BannerImage?.Trim() ?? "").Length > 0) if ((target.BannerImage?.Trim() ?? "").Length > 0)
{ {