summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2023-05-15 11:15:28 +0200
committerGravatar default2023-05-15 11:15:28 +0200
commite9588a71ae67427d3ed0c50246f46724aa7611c3 (patch)
treeec503280ce297ee03ca7cd1fe3c0528284198a4d /data.c
parentBackport from xs. (diff)
downloadsnac2-e9588a71ae67427d3ed0c50246f46724aa7611c3.tar.gz
snac2-e9588a71ae67427d3ed0c50246f46724aa7611c3.tar.xz
snac2-e9588a71ae67427d3ed0c50246f46724aa7611c3.zip
Add /v1/account/search support.
Diffstat (limited to 'data.c')
-rw-r--r--data.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/data.c b/data.c
index 92574c2..7a7adb0 100644
--- a/data.c
+++ b/data.c
@@ -1222,13 +1222,14 @@ int following_get(snac *snac, const char *actor, d_char **data)
1222} 1222}
1223 1223
1224 1224
1225d_char *following_list(snac *snac) 1225xs_list *following_list(snac *snac)
1226/* returns the list of people being followed */ 1226/* returns the list of people being followed */
1227{ 1227{
1228 xs *spec = xs_fmt("%s/following/" "*.json", snac->basedir); 1228 xs *spec = xs_fmt("%s/following/" "*.json", snac->basedir);
1229 xs *glist = xs_glob(spec, 0, 0); 1229 xs *glist = xs_glob(spec, 0, 0);
1230 char *p, *v; 1230 xs_list *p;
1231 d_char *list = xs_list_new(); 1231 xs_str *v;
1232 xs_list *list = xs_list_new();
1232 1233
1233 /* iterate the list of files */ 1234 /* iterate the list of files */
1234 p = glist; 1235 p = glist;