Commit graph

366 commits

Author SHA1 Message Date
default
51ef347334 Added some more checks to _object_fn_by_md5(). 2023-06-18 20:08:51 +02:00
default
551bf92b3b Added the caller function name to _object_fn_by_md5() and _object_fn(). 2023-06-18 19:53:33 +02:00
default
0a6a3a0a9a Avoid checking for deleted entries (starting with '-') in index_gc(). 2023-06-18 19:09:37 +02:00
default
723efdb251 Added some logging on corrupted md5 ids. 2023-06-16 10:04:29 +02:00
default
262de20aa8 Fixed voting / replying confusion. 2023-06-15 17:24:44 +02:00
default
09e0d99251 Increased log level for enqueue_request_replies(). 2023-06-15 09:35:03 +02:00
default
14b2f69768 If a ~/log/ folder exists, also write the log there. 2023-06-15 06:15:39 +02:00
default
2076267c03 Avoid returning 'ghost' no-longer-followers in followers_list(). 2023-06-15 04:56:44 +02:00
default
2bed69d00b Use the _a.json extension for actor object links into following/. 2023-06-15 04:29:26 +02:00
default
297b82c9c6 following_list() creates links to the actors if they don't exist. 2023-06-15 04:19:09 +02:00
default
e97092cf0c Maintain a link to the author object in the following/ subdirectory. 2023-06-15 04:11:39 +02:00
default
1307b6203c Use utimes() to 'touch' the actor file in actor_get(). 2023-06-14 20:59:00 +02:00
default
b77ef13d2c Don't enqueue a request_replies message if it's already there. 2023-06-07 13:09:19 +02:00
default
ecde1c219e New function enqueue_request_replies().
This way, the (potentially expensive and slow) call to
timeline_request_replies() is detached from actions like
replying a message from the web ui.
2023-06-07 12:04:59 +02:00
default
125317ac47 Some prototype update. 2023-06-07 11:08:14 +02:00
default
3b72b0f0ac New function was_question_voted(). 2023-05-31 22:06:31 +02:00
default
7659362448 Enqueue a close_question user q_item. 2023-05-29 11:07:38 +02:00
default
654e171b93 New macro ISO_DATE_SPEC. 2023-05-29 09:07:27 +02:00
default
5d8e370ec3 More prototype tunnings. 2023-05-24 13:05:43 +02:00
default
e6eb1adc65 Also find local users in /api/v1/search. 2023-05-15 13:04:30 +02:00
default
e9588a71ae Add /v1/account/search support. 2023-05-15 11:15:28 +02:00
default
e2e7bc2d71 Added a source (web, mastoapi, etc) to lastlog_write(). 2023-05-08 09:02:45 +02:00
default
753eadfd17 Added some const here and there. 2023-05-04 09:25:09 +02:00
default
511f5062b7 Deleted real unused parameters. 2023-05-04 09:19:26 +02:00
default
cf2b334d86 Ensure no actor data is left in actor_get(). 2023-05-03 08:15:38 +02:00
default
4595a36859 Partial support for mastoapi unfavourite / unreblog. 2023-05-01 17:20:49 +02:00
default
c21bbd5f7c New functions index_del_md5(), index_del() and object_unadmire(). 2023-05-01 17:02:44 +02:00
default
84902d8dcc Purge / gc the instance timeline index. 2023-05-01 08:32:48 +02:00
default
21a2a01937 Return immediately from actor_get() if it's a local user. 2023-04-30 07:37:39 +02:00
default
e31c4810a8 actor_get() returns an actor message for local users. 2023-04-30 06:49:51 +02:00
default
ede4d6f2dc Some instance timeline work. 2023-04-30 06:39:55 +02:00
default
049818a904 Public posts are also added to an instance public timeline index. 2023-04-29 07:36:18 +02:00
default
765f63772f New function mastoapi_purge() (still dummy). 2023-04-28 08:33:02 +02:00
default
043cd5c50b Fixed warning. 2023-04-23 08:59:14 +02:00
default
4fca7c8a7e Added mastoapi unfollow. 2023-04-23 08:51:02 +02:00
default
291f251ced Added mastoapi follow. 2023-04-23 08:44:26 +02:00
default
88850bdc46 Attend mastoapi relationships.
Now, the follow/unfollow buttons appear on each account's page.
2023-04-23 06:05:35 +02:00
default
2b80873a28 History functions fail on ids with /. 2023-04-22 08:02:23 +02:00
default
51bee249d4 Fail on static data ids with / in them. 2023-04-22 07:58:31 +02:00
default
66d5acc822 Use static_get_meta() when preparing the attachment. 2023-04-22 00:51:06 +02:00
default
8c4850df50 New functions to get and set metadata into static files. 2023-04-22 00:24:15 +02:00
default
8205159f8c Replaced strcpy() with strncpy().
To shut up some compiler whining.
2023-04-16 20:12:44 +02:00
default
0240c871f3 New function user_open_by_md5(). 2023-04-16 07:43:41 +02:00
default
9e7a77c10f New mastoapi to clear all notifications. 2023-04-14 19:39:31 +02:00
default
bd21d144de New function timeline_touch(). 2023-04-14 19:17:16 +02:00
default
995fd81e48 notify_list() returns the notifications in reverse order. 2023-04-14 09:34:01 +02:00
default
35c611b8b9 Fixed crash in notification list. 2023-04-14 08:37:33 +02:00
default
c66cd2edb5 Fixed crash in notify_get(). 2023-04-13 18:34:14 +02:00
default
51208b10c1 Implemented mastoapi notifications. 2023-04-13 17:56:00 +02:00
default
1a27e67ed9 New functions notify_get() and notify_list(). 2023-04-13 17:34:48 +02:00
default
211bedd497 New function notify_check_time(). 2023-04-13 17:12:07 +02:00
default
bcde97c2d5 New function notify_add(). 2023-04-13 16:59:17 +02:00
default
e47cb4f9e1 f_ctime() returns the oldest of ctime and mtime. 2023-04-13 09:46:05 +02:00
default
885031bed9 Don't generate invalid JSON if an attachment has no description. 2023-04-12 10:41:15 +02:00
default
5046531d43 New functions object_ctime() and object_ctime_by_md5(). 2023-04-12 09:46:42 +02:00
default
93008cfc3e New function f_ctime(). 2023-04-12 09:43:23 +02:00
default
74817a4552 Updated RELEASE_NOTES. 2023-04-06 00:03:06 +02:00
default
1fe34ffb4a New function lastlog_write(). 2023-04-05 23:46:51 +02:00
default
ec31697b8d Collected addresses are also purged. 2023-03-07 14:33:15 +01:00
default
a2d36aa5f2 Renamed _purge_subdir() to _purge_user_subdir(). 2023-03-07 14:10:13 +01:00
default
b2ce9323db Added the url to srv_archive(). 2023-03-02 17:13:17 +01:00
default
5036cb5e11 Connection jobs are treated as urgent. 2023-03-02 12:38:02 +01:00
default
29b12498dd Simplified is_msg_public(). 2023-03-02 09:15:40 +01:00
default
e74ae0f589 Renamed inboxes/ to inbox/. 2023-03-02 09:01:08 +01:00
default
5e3c50d6e1 New inbox collection functions. 2023-03-02 08:43:50 +01:00
default
d75a22adab New function srv_archive_error(). 2023-03-01 08:25:36 +01:00
default
105683d4d2 Moved srv_archive() to data.c. 2023-03-01 08:09:56 +01:00
default
e4b6054313 Changed debug level for purge log messages. 2023-02-25 18:37:19 +01:00
default
3a9ea8aa1c Also purge stray index files. 2023-02-24 10:07:00 +01:00
default
1630519066 Deleted index_del_md5() and index_del(). 2023-02-23 18:43:52 +01:00
default
285dbe1a5e Call index_gc() on the user indexes. 2023-02-23 18:42:38 +01:00
default
307c9420c3 New function index_gc(). 2023-02-23 10:42:09 +01:00
default
4eec215729 Serialize some data writes. 2023-02-23 09:32:47 +01:00
default
5a5835b4fa Deleted the index_lock() nonsense. 2023-02-22 21:52:24 +01:00
default
0f328d079c New function index_unlock(). 2023-02-22 19:15:22 +01:00
default
450863031b Added index locks a bit stronger. 2023-02-22 19:09:05 +01:00
default
23c433ee02 Added a warning. 2023-02-22 18:15:48 +01:00
default
d817264e52 Added a user config override for 'purge_days'. 2023-02-12 09:26:44 +01:00
default
0f4db7cf26 New file ~user/user_o.json, for the admin to override user settings. 2023-02-12 09:17:38 +01:00
default
2c45b655c3 Added 'fattr' to the pledge() list. 2023-02-11 06:43:43 +01:00
default
28d1da0a81 Don't fail silently if the job fifo is not ready. 2023-02-11 06:28:36 +01:00
default
03325d04a5 Show the fd rlimit at httpd startup. 2023-02-10 13:39:17 +01:00
default
2ed2914fa3 Print errno in user file opening errors. 2023-02-08 15:03:35 +01:00
default
b64d0f338d New function timeline_here(). 2023-02-08 13:28:03 +01:00
default
3fcc139d66 timeline_top_level() now looks for the entries in the user caches. 2023-02-08 13:21:44 +01:00
default
b8cd0d6363 New function timeline_fn_by_md5(). 2023-02-08 13:06:49 +01:00
default
4cca157641 Output messages are now processed by the pool of threads. 2023-02-07 13:31:48 +01:00
default
67f2d4318d New utility function mkdirx(). 2023-02-07 09:25:01 +01:00
default
fabe6a5006 Tweaked user and group permissions for new files and dirs. 2023-02-07 09:01:57 +01:00
default
2db57c9df9 Added internals for Telegram notifications. 2023-02-07 07:37:23 +01:00
default
70c73d0336 New user option 'purge_days'. 2023-02-05 19:09:22 +01:00
default
143c73500b Reworked purge_user() to be clearer. 2023-02-05 18:13:46 +01:00
default
9cb6216417 timeline_get_by_md5() reads from the user cachedirs instead of the global object.
This way, user defined purging will be easier to implement.
2023-02-05 17:56:59 +01:00
default
71a7569467 Deleted the type argument from object_get_my_md5() and object_get().
It was never used.
2023-02-05 17:45:00 +01:00
default
bad9f3a8c6 Renamed timeline_get() to timeline_get_by_md5(), as that is what id does. 2023-02-05 17:39:40 +01:00
default
12aedfadfd New function timeline_get(). 2023-02-05 13:35:50 +01:00
default
d49089898f Elevated debug level to bad user / invalid user messages. 2023-02-03 16:51:59 +01:00
default
928f22fbba Email notifications have been moved to the global queue. 2023-02-02 05:21:16 +01:00
default
c639553836 New function queue() (the global queue). 2023-02-02 05:07:20 +01:00
default
106c94ef86 queue() renamed to user_queue(). 2023-02-02 04:47:59 +01:00