👔 Optimize the post activity fetching
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user