Resolve all high-severity architecture review findings
This commit is contained in:
@@ -1000,7 +1000,8 @@ public class NotificationOutboxActor : ReceiveActor, IWithTimers
|
||||
var repository = scope.ServiceProvider.GetRequiredService<INotificationOutboxRepository>();
|
||||
var notification = await repository.GetByIdAsync(query.NotificationId);
|
||||
|
||||
if (notification is null)
|
||||
if (notification is null || (query.VerifiedSourceSiteId is { } site
|
||||
&& !string.Equals(notification.SourceSiteId, site, StringComparison.Ordinal)))
|
||||
{
|
||||
return new NotificationStatusResponse(
|
||||
query.CorrelationId, Found: false, Status: string.Empty,
|
||||
|
||||
Reference in New Issue
Block a user