From fa2ec856a0cf965bc51d984b694074e02f52c2f5 Mon Sep 17 00:00:00 2001 From: James Smith Date: Fri, 29 Nov 2024 14:50:42 +0000 Subject: [PATCH] helper method to see if reports are local --- app/models/federails/moderation/report.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/federails/moderation/report.rb b/app/models/federails/moderation/report.rb index 1dbc44d..aead11f 100644 --- a/app/models/federails/moderation/report.rb +++ b/app/models/federails/moderation/report.rb @@ -18,4 +18,7 @@ def reporter_address end end + def local? + federails_actor&.local? + end end