diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 11 |
1 files changed, 8 insertions, 3 deletions
| @@ -933,10 +933,15 @@ xs_list *follower_list(snac *snac) | |||
| 933 | xs *a_obj = NULL; | 933 | xs *a_obj = NULL; |
| 934 | 934 | ||
| 935 | if (valid_status(object_get_by_md5(v, &a_obj))) { | 935 | if (valid_status(object_get_by_md5(v, &a_obj))) { |
| 936 | char *actor = xs_dict_get(a_obj, "id"); | 936 | const char *actor = xs_dict_get(a_obj, "id"); |
| 937 | 937 | ||
| 938 | if (!xs_is_null(actor)) | 938 | if (!xs_is_null(actor)) { |
| 939 | fwers = xs_list_append(fwers, actor); | 939 | /* check if the actor is still cached */ |
| 940 | xs *fn = xs_fmt("%s/followers/%s.json", snac->basedir, v); | ||
| 941 | |||
| 942 | if (mtime(fn) > 0.0) | ||
| 943 | fwers = xs_list_append(fwers, actor); | ||
| 944 | } | ||
| 940 | } | 945 | } |
| 941 | } | 946 | } |
| 942 | 947 | ||