aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-19 18:54:02 +0100
committerdefault <nobody@localhost>2025-01-19 18:54:02 +0100
commitf7ae2521ba76dfa403b182221001c38bf383d0e3 (patch)
tree8d8dc6244824b9e0e4fd861ff563871dbf2895d0
parent5b7279b6f7b0bff59aba029b12b05c989a3b0059 (diff)
Don't notify us for our own posts from the relay.
-rw-r--r--activitypub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 73145d3..8b44dc8 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -889,6 +889,11 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
/* if it's not an admiration about something by us, done */
if (xs_is_null(objid) || !xs_startswith(objid, snac->actor))
return;
+
+ /* if it's an announce by our own relay, done */
+ xs *relay_id = xs_fmt("%s/relay", srv_baseurl);
+ if (xs_startswith(id, relay_id))
+ return;
}
/* updated poll? */