diff options
| author | rako <m@rako.space> | 2025-11-28 10:37:49 +0100 |
|---|---|---|
| committer | rako <m@rako.space> | 2025-11-30 21:19:13 +0100 |
| commit | a45c1ce152011e8fe25eb1d25594ac5705f65404 (patch) | |
| tree | 93c9f3f9dc187fe7aa38e882879f72353b273925 /upgrade.c | |
| parent | 46bb87c2b54c9b9d9a4cd462b47158ede1eec170 (diff) | |
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'
Diffstat (limited to 'upgrade.c')
| -rw-r--r-- | upgrade.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |