summaryrefslogtreecommitdiff
path: root/data.c
AgeCommit message (Collapse)Author
2022-12-10New function index_len().default
2022-12-07Merge pull request 'Pagination of the private and public page' (#13) from ↵grunfink
kensanata/snac2:pagination into master Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/13
2022-12-06Fixed memory leak.default
2022-12-06Pagination of the public and private pageAlex Schroeder
Use the query parameters skip and show to control what you can see, e.g. /alex/admin?skip=0&show=4 Don't use or save the timeline cache if either is set. The following functions were changed from accepting a single max parameter to accepting both skip and show: timeline_simple_list, timeline_list, index_list_desc.
2022-12-04New function new_password().default
2022-12-04Fix arguments in callto xs_fmtAlex Schroeder
Without this, db_upgrade segfaults.
2022-12-04Set default debug level to 1 for most object db functions.default
2022-12-03In _object_user_cache(), don't call index_add() if link() fails.default
It will most probably fail because the object is already there.
2022-12-03From timeline_admire(), add to both caches.default
2022-12-03Don't store messages in public/ that are not public.default
They weren't shown anyway, but it's better to be sure.
2022-12-03Add this user admires to the public timeline.default
2022-12-03Upgrade timeline/ to private/.default
2022-12-03Upgraded local/ to public/.default
2022-12-03New function timeline_simple_list().default
2022-12-02Use xs_set_result() in timeline_top_level().default
2022-12-02New function object_here_by_md5().default
2022-12-02New function object_parent().default
2022-12-02More old code cleaning.default
2022-12-02Renamed timeline_here() to object_here().default
2022-12-02More old code deletions.default
2022-12-02The old timeline is no longer maintained.default
2022-12-02Big data storage change.default
2022-11-28Fixed status codes for follower_add() and follower_del().default
2022-11-28Changed following_list() to return a list of actors.default
2022-11-28Upgraded followers to the new db.default
2022-11-28New function object_user_cache_in().default
2022-11-27New function object_del_if_unref().default
2022-11-26Added some tweaks to file locking.default
2022-11-26timeline_top_level() works.default
2022-11-26New function timeline_top_level() (untested).default
2022-11-26New function index_first().default
2022-11-26Don't call object_del() from timeline_del().default
Only delete from each user's cache, not from the global database.
2022-11-26Only call the expensive index_del() if unlink() did not fail.default
2022-11-26Added comment.default
2022-11-26_object_user_cache() also update the indexes.default
2022-11-26New function object_user_cache_del().default
2022-11-26Renamed object_user_cache() to object_user_cache_add().default
2022-11-26Maintain a one-element index with each entry's parent.default
2022-11-26New function object_add_ow().default
2022-11-26Avoid calling time() so many times.default
2022-11-26purge_server() deletes using object_del().default
2022-11-25Delete redundant call to timeline_update_indexes().default
2022-11-25New function timeline_update_indexes().default
2022-11-25New function object_user_cache().default
2022-11-25Also purge the public/ and private/ caches.default
2022-11-25Do hard links to objects in each user's public and private caches.default
2022-11-25Renamed indexes.default
timeline.idx to private.idx, local.idx to public.idx.
2022-11-25New function timeline_object_add().default
2022-11-25Fixed typo.default
2022-11-25In purge_server(), don't purge objects with 2 (or more) hard links.default
This way, an object can be protected from the purge by creating a hard link to it.