🐛 Fix wrong db query

This commit is contained in:
2025-12-31 01:37:28 +08:00
parent eb8d126261
commit cd8e6714b2
2 changed files with 0 additions and 4 deletions

View File

@@ -314,8 +314,6 @@ public class ActivityPubDeliveryService(
public async Task<bool> SendUpdateActorActivityAsync(SnFediverseActor actor) public async Task<bool> SendUpdateActorActivityAsync(SnFediverseActor actor)
{ {
var publisher = await db.Publishers var publisher = await db.Publishers
.Include(p => p.Picture)
.Include(p => p.Background)
.FirstOrDefaultAsync(p => p.Id == actor.PublisherId); .FirstOrDefaultAsync(p => p.Id == actor.PublisherId);
if (publisher == null) if (publisher == null)

View File

@@ -698,8 +698,6 @@ public class PublisherService(
throw new InvalidOperationException("Fediverse actor already exists for this publisher"); throw new InvalidOperationException("Fediverse actor already exists for this publisher");
var publisher = await db.Publishers var publisher = await db.Publishers
.Include(p => p.Picture)
.Include(p => p.Background)
.FirstOrDefaultAsync(p => p.Id == publisherId); .FirstOrDefaultAsync(p => p.Id == publisherId);
if (publisher == null) if (publisher == null)