[backend/core] Set userHost to user.Host instead of null

This fixes remote renotes having their userHost set to null
This commit is contained in:
Laura Hausmann 2024-04-24 02:49:50 +02:00
parent 98fc1f50a9
commit 36fe68ad4f
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -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() ?? [],