From bcac7b29c82f89efeaaf5df5433757e6f39b4bdc Mon Sep 17 00:00:00 2001 From: db0 Date: Sun, 17 Sep 2023 23:52:43 +0200 Subject: [PATCH] fix: report correct guarantee --- fediseer/apis/v1/guarantees.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fediseer/apis/v1/guarantees.py b/fediseer/apis/v1/guarantees.py index 9a7e6d2..98b7066 100644 --- a/fediseer/apis/v1/guarantees.py +++ b/fediseer/apis/v1/guarantees.py @@ -182,8 +182,8 @@ class Guarantees(Resource): ) db.session.add(new_solicitation) solicitation_report = Report( - source_domain=instance.domain, - target_domain=instance.domain, + source_domain=target_instance.domain, + target_domain=target_instance.domain, report_type=enums.ReportType.SOLICITATION, report_activity=enums.ReportActivity.ADDED, )