diff options
| author | 2023-05-15 11:15:28 +0200 | |
|---|---|---|
| committer | 2023-05-15 11:15:28 +0200 | |
| commit | e9588a71ae67427d3ed0c50246f46724aa7611c3 (patch) | |
| tree | ec503280ce297ee03ca7cd1fe3c0528284198a4d /data.c | |
| parent | Backport from xs. (diff) | |
| download | snac2-e9588a71ae67427d3ed0c50246f46724aa7611c3.tar.gz snac2-e9588a71ae67427d3ed0c50246f46724aa7611c3.tar.xz snac2-e9588a71ae67427d3ed0c50246f46724aa7611c3.zip | |
Add /v1/account/search support.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -1222,13 +1222,14 @@ int following_get(snac *snac, const char *actor, d_char **data) | |||
| 1222 | } | 1222 | } |
| 1223 | 1223 | ||
| 1224 | 1224 | ||
| 1225 | d_char *following_list(snac *snac) | 1225 | xs_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; |