👔 Optimize the post activity fetching

This commit is contained in:
2025-07-30 17:55:04 +08:00
parent 1e25982c08
commit cb681681e1
2 changed files with 14 additions and 7 deletions

View File

@@ -665,7 +665,7 @@ public static class PostQueryExtensions
bool isListing = false
)
{
var now = Instant.FromDateTimeUtc(DateTime.UtcNow);
var now = SystemClock.Instance.GetCurrentInstant();
var publishersId = publishers.Select(e => e.Id).ToList();
source = isListing switch
@@ -688,4 +688,4 @@ public static class PostQueryExtensions
(e.Publisher.AccountId != null && userFriends.Contains(e.Publisher.AccountId.Value)) ||
publishersId.Contains(e.PublisherId));
}
}
}