diff options
author | default <nobody@localhost> | 2022-11-26 05:46:21 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-26 05:46:21 +0100 |
commit | f403d6f8d35d55b61a526b048b7ba7a3fae9dc49 (patch) | |
tree | 787aa6237802f1ebc4477271f27af01457043bb3 /data.c | |
parent | 405bf6b8e4241252ed7bde917a21e0c57d4bab70 (diff) |
Renamed object_user_cache() to object_user_cache_add().
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -464,6 +464,8 @@ int _object_add(const char *id, d_char *obj, int ow) /* create a one-element index with the parent */ xs *p_idx = xs_replace(fn, ".json", "_p.idx"); index_add(p_idx, in_reply_to); + + srv_debug(0, xs_fmt("object_add added parent %s to %s", in_reply_to, p_idx)); } } else @@ -554,7 +556,7 @@ int object_admire(const char *id, const char *actor, int like) } -int object_user_cache(snac *snac, const char *id, const char *cachedir) +int object_user_cache_add(snac *snac, const char *id, const char *cachedir) /* caches an object into a user cache */ { xs *ofn = _object_fn(id); @@ -944,14 +946,14 @@ void timeline_update_indexes(snac *snac, const char *id) xs *idx = xs_fmt("%s/private.idx", snac->basedir); index_add(idx, id); - object_user_cache(snac, id, "private"); + object_user_cache_add(snac, id, "private"); if (xs_startswith(id, snac->actor)) { /* add to the public index */ idx = xs_replace_i(idx, "private", "public"); index_add(idx, id); - object_user_cache(snac, id, "public"); + object_user_cache_add(snac, id, "public"); } } |