[backend/federation] Only set LastFetchedAt in CreateUserAsync if we're not on a background thread
This makes sure that the next call to GetUpdatedUser resolves mentions for this user
This commit is contained in:
parent
b8d92b56bb
commit
5edcea3ab5
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ public class UserService(
|
||||||
{
|
{
|
||||||
Id = IdHelpers.GenerateSlowflakeId(),
|
Id = IdHelpers.GenerateSlowflakeId(),
|
||||||
CreatedAt = DateTime.UtcNow,
|
CreatedAt = DateTime.UtcNow,
|
||||||
LastFetchedAt = DateTime.UtcNow,
|
LastFetchedAt = followupTaskSvc.IsBackgroundWorker ? null : DateTime.UtcNow,
|
||||||
DisplayName = actor.DisplayName,
|
DisplayName = actor.DisplayName,
|
||||||
IsLocked = actor.IsLocked ?? false,
|
IsLocked = actor.IsLocked ?? false,
|
||||||
IsBot = actor.IsBot,
|
IsBot = actor.IsBot,
|
||||||
|
|
Loading…
Add table
Reference in a new issue