From 1d188069dbe69883d52c1653b7fce0f3669ae9e0 Mon Sep 17 00:00:00 2001 From: LDA Date: Tue, 10 Sep 2024 21:51:09 +0200 Subject: [PATCH] [FIX] Fix other little CI thing --- src/AS/Relations.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/AS/Relations.c b/src/AS/Relations.c index 4809413..e9baa5a 100644 --- a/src/AS/Relations.c +++ b/src/AS/Relations.c @@ -25,19 +25,20 @@ ASGetRelations(const ParseeConfig *c, size_t n, char *room, char *event, char *t } user = StrConcat(4, "@", c->sender_localpart, ":", c->server_base); - if (event) + if (type) { - path = StrConcat(6, + path = StrConcat(8, "/_matrix/client/v1/rooms/", room, - "/relations/", event, + "/relations/", event, "/", type, "?user_id=", user ); } else { - path = StrConcat(4, + path = StrConcat(6, "/_matrix/client/v1/rooms/", room, - "/relations?user_id=", user + "/relations/", event, + "?user_id=", user ); } Free(user);