[FIX] Fix other little CI thing

This commit is contained in:
LDA 2024-09-10 21:51:09 +02:00
commit 1d188069db

View file

@ -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);