mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-23 15:08:00 +00:00
fix AttributeError when fetching an instance by name
This commit is contained in:
parent
0322fa567b
commit
1d8de63d95
|
@ -187,7 +187,7 @@ class Connection(tinysql.ConnectionMixin):
|
||||||
|
|
||||||
query = 'SELECT * FROM instances WHERE domain = :data OR actor = :data OR inbox = :data'
|
query = 'SELECT * FROM instances WHERE domain = :data OR actor = :data OR inbox = :data'
|
||||||
row = self.execute(query, dict(data=data), table='instances').one()
|
row = self.execute(query, dict(data=data), table='instances').one()
|
||||||
return row if row.joined else None
|
return row if row and row.joined else None
|
||||||
|
|
||||||
|
|
||||||
def get_instances(self):
|
def get_instances(self):
|
||||||
|
|
Loading…
Reference in a new issue