Compare commits

..

3 commits

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

See merge request pleroma/relay!47
2023-01-13 17:08:48 +00:00
Izalia Mae 15b1324df2 Merge branch 'zen-master-patch-50595' into 'master'
Do not check instance's actor.type in case of Pleroma/Akkoma

See merge request pleroma/relay!50
2023-01-11 03:43:59 +00:00
Dmytro Poltavchenko 006efc1ba4 Do not check instance's actor.type in case of Pleroma/Akkoma 2023-01-08 00:23:36 +00:00

View file

@ -12,12 +12,12 @@ cache = LRUCache(1024)
def person_check(actor, software): def person_check(actor, software):
## pleroma and akkoma use Person for the actor type for some reason ## pleroma and akkoma may 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 True return False
## make sure the actor is an application ## make sure the actor is an application
elif actor.type != 'Application': if actor.type != 'Application':
return True return True