commit f7ae252

default  ·  2025-01-19 17:54:02 +0000 UTC
parent 5b7279b
Don't notify us for our own posts from the relay.
1 files changed,  +5, -0
+5, -0
 1@@ -889,6 +889,11 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
 2         /* if it's not an admiration about something by us, done */
 3         if (xs_is_null(objid) || !xs_startswith(objid, snac->actor))
 4             return;
 5+
 6+        /* if it's an announce by our own relay, done */
 7+        xs *relay_id = xs_fmt("%s/relay", srv_baseurl);
 8+        if (xs_startswith(id, relay_id))
 9+            return;
10     }
11 
12     /* updated poll? */