mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-23 23:17:58 +00:00
Compare commits
1 commit
172da058d1
...
97e9f1a2fd
Author | SHA1 | Date | |
---|---|---|---|
97e9f1a2fd |
|
@ -12,12 +12,12 @@ cache = LRUCache(1024)
|
|||
|
||||
|
||||
def person_check(actor, software):
|
||||
## 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':
|
||||
return False
|
||||
## 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':
|
||||
return True
|
||||
|
||||
## make sure the actor is an application
|
||||
if actor.type != 'Application':
|
||||
elif actor.type != 'Application':
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue