Commit graph

480 commits

Author SHA1 Message Date
default
1531e81a31 Added a skip argument to content_search(). 2024-05-10 11:29:18 +02:00
default
cccc5454c2 Added a maximum results argument to content_search(). 2024-05-09 09:31:10 +02:00
default
8de93b9cd7 mastoapi: some search by content tweaks. 2024-05-09 09:24:39 +02:00
default
979f2ad140 Rewritten content_search() to read from both timelines. 2024-05-08 16:43:02 +02:00
default
34c8968cfb Minor tweaks to content_search(). 2024-05-08 11:06:33 +02:00
default
52ba7f030e Renamed to content_search(). 2024-05-08 11:00:50 +02:00
default
dc74cac6c9 Added a timeout flag to search_by_content(). 2024-05-08 10:27:30 +02:00
default
3ab733cdf5 New function search_by_content(). 2024-05-08 10:20:25 +02:00
default
3355d5559d New op #3 to list_maint() (get list name). 2024-05-07 20:51:24 +02:00
default
6b1721c977 List timelines can now be (manually) navigated from the web UI.
URLs are {srv_baseurl}/{user}/list/{list_id} (you must know the list id).
2024-05-07 19:40:28 +02:00
default
be9cf2f555 Enqueue an object request for closed polls.
It seems that Pleroma does not send poll updates on close (or never).
2024-05-05 01:58:27 +02:00
default
fc76ae4e9e New function enqueue_object_request(). 2024-05-05 01:38:22 +02:00
default
6a77c634ad Also add announces to lists. 2024-04-30 19:41:08 +02:00
default
4e23570c21 Added more internal integrity checks.
index_add_md5() barfs if the md5 is not valid.
2024-04-30 09:27:33 +02:00
default
96830967e1 Also purge lists. 2024-04-30 09:14:03 +02:00
default
f1221808a8 More work in lists. 2024-04-29 10:15:04 +02:00
default
7f322302e5 New function list_distribute(). 2024-04-29 09:50:22 +02:00
default
29fb430797 More work in lists. 2024-04-29 09:26:37 +02:00
default
9a13e330f1 More work in lists. 2024-04-29 08:29:18 +02:00
default
8275a5f4d8 Start of list support. 2024-04-29 07:43:01 +02:00
default
ebf6a4bd8e URLs like {srv_baseurl}/{user}/admin/p/{md5} are valid.
But only if {md5} is in the user's timeline.
2024-04-22 05:46:56 +02:00
default
26840e0dc0 Some tweaks to previous patch. 2024-04-18 17:13:31 +02:00
grunfink
100c9cf569 Merge pull request 'Ability to federate with hidden networks #93 (update for v2.49)' (#149) from iwojima/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/149
2024-04-18 15:12:47 +00:00
default
dba0630660 Commented out received unboosts (see code for an explanation). 2024-04-12 05:28:34 +02:00
default
a7bd9b63e4 In object_unadmire(), don't call index_gc() if index_del() did nothing. 2024-04-11 19:55:45 +02:00
default
e362dfc356 Also purge like and announce index backups. 2024-04-11 19:39:45 +02:00
default
46f2e324d8 Undo for Likes and Announces are no longer dropped. 2024-04-11 19:29:30 +02:00
default
b6f8d8e900 On OpenBSD, don't enable sendmail if email notifications are disabled. 2024-04-02 17:44:27 +02:00
default
bc752b7d67 Emojis are now read from ~/emojis.json. 2024-03-25 15:33:14 +01:00
default
b2e3841467 Call actor_get_refresh() from actor_request(). 2024-03-13 06:30:24 +01:00
default
b9dbc5bcf3 Fixed log message. 2024-03-12 19:50:26 +01:00
default
66c42da77a Queue actor request renamed to actor_refresh. 2024-03-12 19:47:37 +01:00
default
f332acc70d More actor refreshing tweaks. 2024-03-12 19:44:08 +01:00
default
cd0e211354 Don't call enqueue_actor_request() with a NULL user. 2024-03-12 18:04:09 +01:00
default
f485dbdaf0 Added actor refreshing via the user queue. 2024-03-12 17:54:54 +01:00
default
48941cfeaf Also call content_check() from timeline_request(). 2024-03-11 09:53:20 +01:00
default
60c2a50ed9 New function content_check(). 2024-03-11 06:00:21 +01:00
iwojim0
7312f4ce51 Ability to federate with hidden networks #93 (update for v2.49) 2024-03-09 14:37:54 +00:00
Andy Piper
e608f3aff1
Add defines for time to enable macos builds. 2024-03-06 17:08:01 +00:00
default
ae6df3d288 More logging tweaks. 2024-03-04 09:22:06 +01:00
default
61647de38b Logging tweaks. 2024-03-04 09:18:07 +01:00
default
e9553379e9 Log (and not notify) repeated likes and announces. 2024-02-21 09:22:32 +01:00
default
e6ef328e5a Call verify_links() instead of enqueue_verify_links() from purge_user(). 2024-02-20 06:38:58 +01:00
default
4806c4ef7e Increased logging level for enqueue_verify_links(). 2024-02-20 06:18:41 +01:00
default
65ae0f87f6 Enqueue a link verification from the user purge. 2024-02-20 06:13:34 +01:00
default
34349112f6 New verify_links q_item. 2024-02-20 05:31:34 +01:00
default
263e239653 Moved verified links to its own json file. 2024-02-15 17:34:46 +01:00
default
80c31a2e01 Deactivated stale actors behind a compiler directive. 2024-02-07 18:23:43 +01:00
default
4e35b4b865 Added paging to notify_list(), and use it in the notifications page. 2024-02-05 19:34:27 +01:00
default
85bf3472b7 Added a notification index. 2024-02-05 14:53:45 +01:00
default
729ad476f0 notify_list() no longer has a new_only argument. 2024-02-05 10:18:38 +01:00
default
65040b65a3 New function get_atto(), to get the attributedTo field. 2024-01-18 23:04:37 +01:00
default
ee0c6386cc Ensure to now overwrite the Accept + Follow object on repeated follows. 2024-01-14 15:08:54 +01:00
default
7ca08aebd2 Fixed crashes in command-line options. 2024-01-14 12:19:35 +01:00
Stefano Marinelli
2af9481837 Added support for ntfy notifications. You can configure either a self-hosted server or use the official ntfy.sh, and you have the option to use a private token to protect access and topics. 2024-01-12 09:54:14 +01:00
default
32ce4b0659 Added an unveil() call for "/tmp".
It seems that it's needed for shm_open() to succeed,
whatever the first argument points to.

No idea why.
2024-01-11 11:07:07 +01:00
default
93e7138e53 Rewritten part of the job threads to be leaner and faster. 2024-01-08 08:10:57 +01:00
default
5e2f4e9902 dequeue() unlinks the file, even if it's been unable to parse it. 2024-01-04 16:27:07 +01:00
default
755d997fb1 Updated copyright year. 2024-01-04 09:22:03 +01:00
default
e003f87c2d Moved most server state to a structure. 2024-01-03 11:01:25 +01:00
default
808849ba14 Don't collect our own shared inbox. 2023-12-19 12:08:06 +01:00
default
fd637549f3 Added a prefix to srv_archive_qitem(). 2023-12-17 15:27:39 +01:00
default
f8196b4ef6 New function srv_archive_qitem(). 2023-12-17 15:21:16 +01:00
default
f93b5ad091 Fixed a misleding log text. 2023-12-16 23:24:32 +01:00
default
bfdaf380ea More logging tweaks. 2023-12-11 10:41:41 +01:00
default
c693c7c62c Some logging tweaks. 2023-12-11 07:37:53 +01:00
default
09b926c168 More functions do not require the user argument. 2023-12-10 17:50:03 +01:00
default
755ef0ed97 Purge unused tags completely. 2023-12-08 08:34:51 +01:00
default
bad729c631 Started work to support shared inboxes. 2023-12-06 14:46:51 +01:00
default
80c5bac826 Backport from xs. 2023-11-17 08:51:53 +01:00
default
8a5067cae4 When purging tag indexes, also delete the .bak files. 2023-11-08 18:37:07 +01:00
default
b199f223e4 Tag indexes are also purged. 2023-11-08 18:15:51 +01:00
default
55d3ef5024 Tags can now be searched for from the server base URL. 2023-11-08 09:20:34 +01:00
default
895cf82a7d New code for indexing tags. 2023-11-08 08:14:34 +01:00
default
253e7f9eaa Don't allow creating users which user name strings only differ in case. 2023-10-13 06:33:12 +02:00
default
1b3f768a57 mastoapi: some tweaks to better match the returned data in timelines. 2023-10-09 11:49:45 +02:00
default
60e8953a69 Give more retry time to timedout connections. 2023-09-29 10:34:22 +02:00
default
f8c62fe210 Pinned posts are never purged. 2023-09-18 22:52:27 +02:00
default
5afa5ab071 Also purge the 'pinned' folder. 2023-09-18 13:35:08 +02:00
default
073a2d962a Discard output messages to blocked instances. 2023-09-02 08:41:29 +02:00
default
dfeb4668a7 Got rid of old d_char. 2023-08-31 07:00:15 +02:00
default
dae2e406d6 history_add() now creates an etag. 2023-08-19 09:59:58 +02:00
default
5c7b26bcdc static_get() and history_get() both share the same code. 2023-08-19 09:52:04 +02:00
default
5de1a9ce0c Rewritten history_get() prototype to match static_get(). 2023-08-19 09:31:13 +02:00
default
b3b4a4ef61 Return the history in reverse order, which has more sense. 2023-08-17 11:37:51 +02:00
default
2bea378610 mastoapi: Some tweaks to process posts with 'name' and 'image' fields. 2023-08-14 20:11:03 +02:00
default
cac1c6febd Rewritten actor_get() to not depend on a user. 2023-08-12 11:23:01 +02:00
default
499697258d Rewritten is_msg_public() to not depend on a user. 2023-08-12 09:43:01 +02:00
default
70b014606b Change filename order in srv_archive_error(). 2023-08-11 22:05:56 +02:00
default
3e5bb109d1 Renamed json dump functions to new xs spec. 2023-08-08 19:29:34 +02:00
default
a3f1387daa Only create the limited/ folder in calling limit(). 2023-08-07 06:38:19 +02:00
default
1763e3347e Added support for limiting followed users. 2023-08-06 18:40:50 +02:00
default
15f755960b Added xs_json_load() wherever possible. 2023-08-05 14:56:07 +02:00
default
381a2f5b7b Use xs_json_load() in some places. 2023-08-05 14:50:20 +02:00
default
f5a3dbf8d6 Use xs_json_dump_pp() wherever possible. 2023-08-03 09:02:08 +02:00
default
0f8c0cd694 Updated comment in headers. 2023-07-28 11:34:18 +02:00
default
eee1916858 Fixed prototypes. 2023-07-14 08:47:20 +02:00
default
545af948db New function post_message(), to send a message bypassing the output queue.
This is used when accepting Follow requests; this way, follows are
confirmed as fast as possible.

If the message cannot be immediately sent, it's queued as always.
2023-07-13 18:18:23 +02:00
default
3642cd25e4 Simplified inbox_list(). 2023-07-10 18:04:59 +02:00
default
e2789cece5 index_list() and index_list_desc() always return a list, even if empty. 2023-07-05 14:41:47 +02:00