summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-20 09:48:13 +0200
committerdefault <nobody@localhost>2022-09-20 09:48:13 +0200
commitacff91e0adec8a9a80412e376e77bed392e333c4 (patch)
tree08f4d38be53de85d561550fd9db70a88444d2cc1 /main.c
parent839cb552f4a42bea5018ce150e85920dbac3f456 (diff)
More follower data code.
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3f94931..f6fc5e2 100644
--- a/main.c
+++ b/main.c
@@ -14,7 +14,17 @@ int main(int argc, char *argv[])
srv_open("/home/angel/lib/snac/comam.es/");
user_open(&snac, "mike");
- snac_log(&snac, xs_str_new("ok"));
+
+ {
+ xs *list = follower_list(&snac);
+ char *p, *obj;
+
+ p = list;
+ while (xs_list_iter(&p, &obj)) {
+ char *actor = xs_dict_get(obj, "actor");
+ printf("%s\n", actor);
+ }
+ }
{
xs *list = user_list();