From a45c1ce152011e8fe25eb1d25594ac5705f65404 Mon Sep 17 00:00:00 2001 From: rako Date: Fri, 28 Nov 2025 10:37:49 +0100 Subject: Fix user matching In order to be a proper prefix, the actor url must end with a '/' otherwise it can match another user that starts with the same prefix: for example 'testuser' will match anything made by 'testuser2' --- upgrade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upgrade.c') diff --git a/upgrade.c b/upgrade.c index 87ddfc8..9e0ae6e 100644 --- a/upgrade.c +++ b/upgrade.c @@ -213,7 +213,7 @@ int snac_upgrade(xs_str **error) object_add_ow(id, o); /* if it's from us, add to public */ - if (xs_startswith(id, snac.actor)) { + if (is_msg_mine(&snac, id)) { const xs_list *p; const char *v; int c; -- cgit v1.2.3