mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Avoid incomplete messages in timeline_request().
This commit is contained in:
parent
c409d2e260
commit
35987ebb50
@ -166,6 +166,9 @@ int timeline_request(snac *snac, char **id, xs_str **wrk, int level)
|
|||||||
/* get the id again from the object, as it may be different */
|
/* get the id again from the object, as it may be different */
|
||||||
const char *nid = xs_dict_get(object, "id");
|
const char *nid = xs_dict_get(object, "id");
|
||||||
|
|
||||||
|
if (xs_type(nid) != XSTYPE_STRING)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (wrk && strcmp(nid, *id) != 0) {
|
if (wrk && strcmp(nid, *id) != 0) {
|
||||||
snac_debug(snac, 1,
|
snac_debug(snac, 1,
|
||||||
xs_fmt("timeline_request canonical id for %s is %s", *id, nid));
|
xs_fmt("timeline_request canonical id for %s is %s", *id, nid));
|
||||||
|
Loading…
Reference in New Issue
Block a user