https://reisub.nsupdate.info/git
/
relay.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48f3977
)
relay: fix mastodon announce check
author
kaniini
<kaniini@dereferenced.org>
Wed, 31 Oct 2018 02:39:48 +0000
(
02:39
+0000)
committer
kaniini
<kaniini@dereferenced.org>
Wed, 31 Oct 2018 02:39:48 +0000
(
02:39
+0000)
relay/actor.py
patch
|
blob
|
history
diff --git
a/relay/actor.py
b/relay/actor.py
index
bc8c680
..
b8ff942
100644
(file)
--- a/
relay/actor.py
+++ b/
relay/actor.py
@@
-160,7
+160,7
@@
async def handle_relay(actor, data, request):
object_id = distill_object_id(data)
# don't relay mastodon announces -- causes LRP fake direction issues
- if data['type'] == 'Announce' and len
gth
(data.get('cc', [])) > 0:
+ if data['type'] == 'Announce' and len(data.get('cc', [])) > 0:
return
message = {