summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2025-01-19 18:54:02 +0100
committerGravatar default2025-01-19 18:54:02 +0100
commitf7ae2521ba76dfa403b182221001c38bf383d0e3 (patch)
tree8d8dc6244824b9e0e4fd861ff563871dbf2895d0 /activitypub.c
parentOnly relay public posts. (diff)
downloadpenes-snac2-f7ae2521ba76dfa403b182221001c38bf383d0e3.tar.gz
penes-snac2-f7ae2521ba76dfa403b182221001c38bf383d0e3.tar.xz
penes-snac2-f7ae2521ba76dfa403b182221001c38bf383d0e3.zip
Don't notify us for our own posts from the relay.
Diffstat (limited to 'activitypub.c')
-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,
889 /* if it's not an admiration about something by us, done */ 889 /* if it's not an admiration about something by us, done */
890 if (xs_is_null(objid) || !xs_startswith(objid, snac->actor)) 890 if (xs_is_null(objid) || !xs_startswith(objid, snac->actor))
891 return; 891 return;
892
893 /* if it's an announce by our own relay, done */
894 xs *relay_id = xs_fmt("%s/relay", srv_baseurl);
895 if (xs_startswith(id, relay_id))
896 return;
892 } 897 }
893 898
894 /* updated poll? */ 899 /* updated poll? */