[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:
parent
98fc1f50a9
commit
36fe68ad4f
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ public class NoteService(
|
||||||
RenoteUserHost = renote?.UserHost,
|
RenoteUserHost = renote?.UserHost,
|
||||||
User = user,
|
User = user,
|
||||||
CreatedAt = DateTime.UtcNow,
|
CreatedAt = DateTime.UtcNow,
|
||||||
UserHost = null,
|
UserHost = user.Host,
|
||||||
Visibility = visibility,
|
Visibility = visibility,
|
||||||
FileIds = attachments?.Select(p => p.Id).ToList() ?? [],
|
FileIds = attachments?.Select(p => p.Id).ToList() ?? [],
|
||||||
AttachedFileTypes = attachments?.Select(p => p.Type).ToList() ?? [],
|
AttachedFileTypes = attachments?.Select(p => p.Type).ToList() ?? [],
|
||||||
|
|
Loading…
Add table
Reference in a new issue