Compare commits

..

1 commit

Author SHA1 Message Date
Izalia Mae 97e9f1a2fd Merge branch 'sqldatabase' into 'master'
Draft: Use SQL database backend

See merge request pleroma/relay!47
2023-01-04 15:24:17 +00:00

View file

@ -12,12 +12,12 @@ cache = LRUCache(1024)
def person_check(actor, software): def person_check(actor, software):
## pleroma and akkoma may use Person for the actor type for some reason ## pleroma and akkoma use Person for the actor type for some reason
if software in {'akkoma', 'pleroma'} and actor.id == f'https://{actor.domain}/relay': if software in {'akkoma', 'pleroma'} and actor.id != f'https://{actor.domain}/relay':
return False return True
## make sure the actor is an application ## make sure the actor is an application
if actor.type != 'Application': elif actor.type != 'Application':
return True return True