Commit graph

686 commits

Author SHA1 Message Date
default
f403d6f8d3 Renamed object_user_cache() to object_user_cache_add(). 2022-11-26 05:46:21 +01:00
default
405bf6b8e4 Maintain a one-element index with each entry's parent. 2022-11-26 05:29:09 +01:00
default
1243e26a0d New function object_add_ow(). 2022-11-26 05:18:48 +01:00
default
17d4e4f5dd Renamed 'admin' link label to 'private'. 2022-11-26 05:12:58 +01:00
default
ad202c5ccb Avoid calling time() so many times. 2022-11-26 05:08:56 +01:00
default
afb970a757 purge_server() deletes using object_del(). 2022-11-26 05:05:57 +01:00
default
9867f321b5 Delete redundant call to timeline_update_indexes(). 2022-11-25 21:26:48 +01:00
default
2c34ec8d6c New function timeline_update_indexes(). 2022-11-25 21:21:59 +01:00
default
c0e3193529 New function object_user_cache(). 2022-11-25 17:48:43 +01:00
default
e93a79e06d Also purge the public/ and private/ caches. 2022-11-25 17:42:01 +01:00
default
6c6b5a30c4 Do hard links to objects in each user's public and private caches. 2022-11-25 17:26:12 +01:00
default
87d3ec2acc Renamed indexes.
timeline.idx to private.idx, local.idx to public.idx.
2022-11-25 17:07:23 +01:00
default
4a41f3a1f0 New function timeline_object_add(). 2022-11-25 14:19:00 +01:00
default
40a9e6e984 Fixed typo. 2022-11-25 13:54:26 +01:00
default
ee75b3f5f6 In purge_server(), don't purge objects with 2 (or more) hard links.
This way, an object can be protected from the purge by creating
a hard link to it.
2022-11-25 13:51:56 +01:00
default
2d7c327cbf New function mtime_nl(). 2022-11-25 13:33:13 +01:00
default
afeec970a3 Also call object_del() on a renewed actor in actor_request(). 2022-11-25 12:50:19 +01:00
default
4bbebe8e4e Started maintaining timeline.idx and local.idx. 2022-11-25 12:42:42 +01:00
default
9df1cb129e Use macro XS_ALL were possible. 2022-11-25 12:21:26 +01:00
default
e2c332c68a On Update + Person, call object_del() before actor_add(). 2022-11-25 12:09:30 +01:00
default
200a6a0c91 The global object database is also purged. 2022-11-25 11:37:05 +01:00
default
b792417013 Also purge the hidden/ user directory. 2022-11-25 11:15:09 +01:00
default
de5345e5bd Updated documentation. 2022-11-25 11:04:23 +01:00
default
1acfe8fc54 Fixed return value of srv_open(). 2022-11-25 10:56:34 +01:00
default
45be9a1cb1 New command-line command 'upgrade'. 2022-11-25 10:53:16 +01:00
default
8a71e2e557 Only log the object_admire() if it's new. 2022-11-24 13:15:32 +01:00
default
694ae655cb Use index_in() in object_admire() to avoid admiring more than once. 2022-11-24 13:10:03 +01:00
default
8be8a9282e New function index_in(). 2022-11-24 13:06:28 +01:00
default
233ba75d1e New function object_admire(). 2022-11-24 13:00:24 +01:00
default
177c362425 Fixed some source comments. 2022-11-24 12:38:31 +01:00
default
2176a91c64 Fixed hide() to store the object id, not its md5. 2022-11-24 12:21:54 +01:00
default
4494fc3daf Fixed muted filenames. 2022-11-24 10:06:24 +01:00
default
e121aeb948 New function object_children(). 2022-11-24 09:58:37 +01:00
default
d215f8ce46 Use the new hide API. 2022-11-24 09:49:54 +01:00
default
4553528507 New API for hidden threads. 2022-11-24 09:39:16 +01:00
default
ea94a479f1 Stop dropping messages with hidden parents. 2022-11-24 09:31:58 +01:00
default
6acf906b64 Added debug info for child index updates. 2022-11-24 09:15:06 +01:00
default
391fc5cd99 In object_add(), update the parent's children index even if the parent isn't here. 2022-11-24 09:06:41 +01:00
default
f2528c6c52 Backport from xs. 2022-11-24 08:47:02 +01:00
default
1941d00650 Refuse to store objects that are already here. 2022-11-24 08:39:30 +01:00
default
b0b052ab3b Function object_del() also deletes the indexes. 2022-11-24 08:36:01 +01:00
default
b23c6d98b6 Don't create an actors/ subdirectory in add user. 2022-11-24 08:19:29 +01:00
default
42449d9cad Also check for a non-empty in_reply_to in object_add(). 2022-11-24 08:18:51 +01:00
default
ecea10e11c Function object_add() also update the parent's children index. 2022-11-24 08:09:57 +01:00
default
9d7b35940f Renamed listfile functions to index. 2022-11-24 08:00:35 +01:00
default
cde8650df7 Don't search explicitly for Person in actor_get().
Some actors are of type Service.
2022-11-23 21:43:00 +01:00
default
180c3405a0 Added listfile prototypes to snac.h. 2022-11-23 20:50:35 +01:00
default
1bd69bc611 Some tweaks to the new listfile functions. 2022-11-23 20:25:57 +01:00
default
7f458f4fd6 More listfile functions. 2022-11-23 19:32:26 +01:00
default
0ff3b32e71 New function list_del_md5(). 2022-11-23 19:14:55 +01:00