remove unecessary method

This commit is contained in:
Izalia Mae 2022-11-18 16:57:34 -05:00
parent ba9f2718aa
commit 85c4df7d8c
2 changed files with 6 additions and 9 deletions

View file

@ -175,11 +175,6 @@ class RelayDatabase(dict):
return False return False
def set_followid(self, domain, followid):
data = self.get_inbox(domain, fail=True)
data['followid'] = followid
def get_request(self, domain, fail=True): def get_request(self, domain, fail=True):
if domain.startswith('http'): if domain.startswith('http'):
domain = urlparse(domain).hostname domain = urlparse(domain).hostname

View file

@ -128,11 +128,13 @@ def cli_inbox_add(inbox):
if app.config.is_banned(inbox): if app.config.is_banned(inbox):
return click.echo(f'Error: Refusing to add banned inbox: {inbox}') return click.echo(f'Error: Refusing to add banned inbox: {inbox}')
if app.database.add_inbox(inbox): if app.database.get_inbox(inbox):
app.database.save() return click.echo(f'Error: Inbox already in database: {inbox}')
return click.echo(f'Added inbox to the database: {inbox}')
click.echo(f'Error: Inbox already in database: {inbox}') app.database.add_inbox(inbox)
app.database.save()
click.echo(f'Added inbox to the database: {inbox}')
@cli_inbox.command('remove') @cli_inbox.command('remove')