From 36fe68ad4f1b7640fa5a42a7fd9ed194f1cea997 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 24 Apr 2024 02:49:50 +0200 Subject: [PATCH] [backend/core] Set userHost to user.Host instead of null This fixes remote renotes having their userHost set to null --- Iceshrimp.Backend/Core/Services/NoteService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Core/Services/NoteService.cs b/Iceshrimp.Backend/Core/Services/NoteService.cs index c4cd3a5a..95f9bc49 100644 --- a/Iceshrimp.Backend/Core/Services/NoteService.cs +++ b/Iceshrimp.Backend/Core/Services/NoteService.cs @@ -141,7 +141,7 @@ public class NoteService( RenoteUserHost = renote?.UserHost, User = user, CreatedAt = DateTime.UtcNow, - UserHost = null, + UserHost = user.Host, Visibility = visibility, FileIds = attachments?.Select(p => p.Id).ToList() ?? [], AttachedFileTypes = attachments?.Select(p => p.Type).ToList() ?? [],