From 1b8cfe08b1d33ff77c3e55265116cea9cca65494 Mon Sep 17 00:00:00 2001 From: db0 Date: Sat, 24 Jun 2023 13:49:18 +0200 Subject: [PATCH] fix: Renames --- fediseer/apis/apiv1.py | 4 ++-- fediseer/apis/v1/whitelist.py | 4 ++-- fediseer/observer.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fediseer/apis/apiv1.py b/fediseer/apis/apiv1.py index 0d235b1..abc12ac 100644 --- a/fediseer/apis/apiv1.py +++ b/fediseer/apis/apiv1.py @@ -7,8 +7,8 @@ from fediseer.apis.v1 import api as v1 blueprint = Blueprint('apiv1', __name__, url_prefix='/api') api = Api(blueprint, version='1.0', - title=f'Lemmy Overseer', - description=f'The API documentation for the Lemmy Overseer', + title=f'Fediseer', + description=f'The API documentation for the Fediseer', contact_email="mail@dbzer0.com", default="v1", default_label="Latest Version", diff --git a/fediseer/apis/v1/whitelist.py b/fediseer/apis/v1/whitelist.py index 37f7a23..37b60ac 100644 --- a/fediseer/apis/v1/whitelist.py +++ b/fediseer/apis/v1/whitelist.py @@ -67,7 +67,7 @@ class WhitelistDomain(Resource): if self.args.guarantor: guarantor_instance = database.find_instance_by_domain(self.args.guarantor) if not guarantor_instance: - raise e.BadRequest(f"Requested guarantor domain {self.args.guarantor} is not registered with the Overseer yet!") + raise e.BadRequest(f"Requested guarantor domain {self.args.guarantor} is not registered with the Fediseer yet!") if self.args.admin not in admin_usernames: raise e.Forbidden(f"Only admins of that {instance.software} are allowed to claim it.") existing_claim = database.find_claim(f"@{self.args.admin}@{domain}") @@ -91,7 +91,7 @@ class WhitelistDomain(Resource): db.session.commit() if guarantor_instance: activitypub_pm.pm_admins( - message=f"New instance {domain} was just registered with the Overseer and have asked you to guarantee for them!", + message=f"New instance {domain} was just registered with the Fediseer and have asked you to guarantee for them!", domain=guarantor_instance.domain, software=guarantor_instance.software, instance=guarantor_instance, diff --git a/fediseer/observer.py b/fediseer/observer.py index 164bf7a..1a1aedc 100644 --- a/fediseer/observer.py +++ b/fediseer/observer.py @@ -1,6 +1,6 @@ import requests from loguru import logger - +from fediseer.consts import FEDISEER_VERSION def retrieve_suspicious_instances(activity_suspicion = 20): # GraphQL query @@ -29,7 +29,7 @@ def retrieve_suspicious_instances(activity_suspicion = 20): # Request headers headers = { - 'User-Agent': 'Lemmy Overseer / mail@dbzer0.com', + 'User-Agent': f'Fediseer/{FEDISEER_VERSION}', 'Accept': '*/*', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate, br',