mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-23 23:17:58 +00:00
Compare commits
No commits in common. "15b1324df280c87f6496da07cab056f7d2809360" and "f4698aa4dc339c14325aede556b162c8c1f539bd" have entirely different histories.
15b1324df2
...
f4698aa4dc
|
@ -11,12 +11,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