mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-10 02:17:59 +00:00
Compare commits
3 commits
97e9f1a2fd
...
172da058d1
Author | SHA1 | Date | |
---|---|---|---|
172da058d1 | |||
15b1324df2 | |||
006efc1ba4 |
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue