qol: fix System.Net.Http dependencies

This commit is contained in:
Gary Sharp
2025-02-26 13:16:29 +11:00
parent d2b5e7ab6a
commit 539503133a
8 changed files with 350 additions and 329 deletions
+2 -4
View File
@@ -65,16 +65,14 @@ namespace Disco.Models.Repository
public AttachmentTypes HasAttachmentType { get { return AttachmentTypes.User; } }
public override string ToString()
{
return string.Format("{0} ({1})", this.DisplayName, this.UserId);
}
=> $"{DisplayName} ({UserId})";
public bool UpdateSelf(User u)
{
var changed = false;
if (!this.UserId.Equals(u.UserId, StringComparison.OrdinalIgnoreCase))
throw new ArgumentException("User Id's do not match", "u");
throw new ArgumentException("User Id's do not match", nameof(u));
if (this.Surname != u.Surname)
{