diff options
| author | 2024-03-09 08:44:48 +0100 | |
|---|---|---|
| committer | 2024-03-09 08:44:48 +0100 | |
| commit | 91bb0615d982d1adcc5680c346f9510905464584 (patch) | |
| tree | 5433a2dcdc2cc34115b76570bdc63b49429093bc /activitypub.c | |
| parent | Backport from xs. (diff) | |
| download | snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.gz snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.xz snac2-91bb0615d982d1adcc5680c346f9510905464584.zip | |
Replaced most xs_dict_iter() with xs_dict_next().
Diffstat (limited to '')
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index f754ee0..1976012 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1221,7 +1221,8 @@ xs_dict *msg_actor(snac *snac) | |||
| 1221 | xs_str *k; | 1221 | xs_str *k; |
| 1222 | xs_str *v; | 1222 | xs_str *v; |
| 1223 | 1223 | ||
| 1224 | while (xs_dict_iter(&metadata, &k, &v)) { | 1224 | int c = 0; |
| 1225 | while (xs_dict_next(metadata, &k, &v, &c)) { | ||
| 1225 | xs *d = xs_dict_new(); | 1226 | xs *d = xs_dict_new(); |
| 1226 | 1227 | ||
| 1227 | xs *k2 = encode_html(k); | 1228 | xs *k2 = encode_html(k); |