🐛 Fix wrong db query
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user