From 48f3977ff76fc943b060dba02524b0bd4a4da584 Mon Sep 17 00:00:00 2001 From: kaniini Date: Wed, 31 Oct 2018 02:37:08 +0000 Subject: [PATCH] relay: don't relay mastodon announces relayed mastodon announces are likely to result in fake direction issues, which will result in the author seeing side effects from the relay. --- relay/actor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/relay/actor.py b/relay/actor.py index 4e010d7..bc8c680 100644 --- a/relay/actor.py +++ b/relay/actor.py @@ -159,6 +159,10 @@ def distill_object_id(activity): 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 length(data.get('cc', [])) > 0: + return + message = { "@context": "https://www.w3.org/ns/activitystreams", "type": "Announce",