fix: Renames

pull/8/head
db0 2023-06-24 13:49:18 +02:00
parent 4ec26ae898
commit 1b8cfe08b1
3 changed files with 6 additions and 6 deletions

View File

@ -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",

View File

@ -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,

View File

@ -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',