Commit graph

485 commits

Author SHA1 Message Date
Louis Brauer
0e21d35e80 Use enum instead of numeric status codes for HTTP statuses 2024-05-26 21:45:41 +02:00
default
8cf7559a7e Added more const. 2024-05-23 10:01:37 +02:00
default
4777fc86cb Added const everywhere. 2024-05-21 14:12:15 +02:00
default
0a6df8e504 Renamed content_check() to content_match(). 2024-05-15 13:31:53 +02:00
default
0a11d70fbe Fixed git conflict. 2024-05-11 19:18:07 +02:00
default
4d53a7b6f7 In timeline_request(), call enqueue_actor_request on actor errors. 2024-05-11 19:16:54 +02:00
default
e1ce85debd Unified post-like object type match. 2024-05-11 18:46:15 +02:00
default
79df266bfe Added some more logging. 2024-05-05 08:23:12 +02:00
default
fc76ae4e9e New function enqueue_object_request(). 2024-05-05 01:38:22 +02:00
default
528f6463b2 Fixed confusion in Undo + Follow processing. 2024-05-02 07:25:22 +02:00
default
6a77c634ad Also add announces to lists. 2024-04-30 19:41:08 +02:00
default
16a4a09e4f New server.json knobs "queue_timeout" and "queue_timeout_2". 2024-04-22 07:53:40 +02:00
default
9cfce7a4bd Deleted useless recalculation of queue_retry_max. 2024-04-22 07:23:27 +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
46f2e324d8 Undo for Likes and Announces are no longer dropped. 2024-04-11 19:29:30 +02:00
default
877fb079f3 mastoapi: 'unfavourite' and 'unreblog' actions now fully work. 2024-04-11 05:12:13 +02:00
default
1a6bb79921 New function msg_repulsion. 2024-04-10 18:27:17 +02:00
default
90ee416bf8 Changed admiration message ids from dummy ones to having an md5 of the object. 2024-04-10 17:21:58 +02:00
default
adf0a13992 If an emoji in emojis.json is an URL to an image, it's stored in the tag list. 2024-03-25 16:15:09 +01:00
default
5a8c4cac80 Added an additional check for blocked instances. 2024-03-25 11:44:19 +01:00
default
b598cb5176 Reject my own messages in is_msg_for_me(). 2024-03-24 11:30:07 +01:00
default
840fde45f1 Only reply to direct Ping activities. 2024-03-24 06:23:48 +01:00
default
21400ca13a Don't be overzealous in avoid notifications for Likes and Announces. 2024-03-22 21:26:10 +01:00
default
73a5fc6f5b Added a type Note to poll options. 2024-03-15 18:36:56 +01:00
default
7aa5250eb8 Backport from xs. 2024-03-15 04:10:11 +01:00
default
b2e3841467 Call actor_get_refresh() from actor_request(). 2024-03-13 06:30:24 +01:00
default
262302a3af Don't call enqueue_actor_refresh() with a NULL user. 2024-03-12 20:07:01 +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
bb28b1c090 Also accept Article objects. 2024-03-11 08:27:37 +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
default
91bb0615d9 Replaced most xs_dict_iter() with xs_dict_next(). 2024-03-09 08:44:48 +01:00
default
093f4af282 Shortened the maximum conversation levels.
Set to a compilation define in MAX_CONVERSATION_LEVELS.
2024-03-08 05:41:08 +01:00
default
30e6125b7d More logging tweaks. 2024-03-04 09:51:11 +01: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
1af00abfba Also reject posts from accounts that are too old to be true. 2024-02-22 14:11:05 +01:00
default
f523e8c178 Added a new min_account_age parameter to server.json.
By setting this value to a number of seconds, any activity from accounts
created newer than that, will be rejected.
2024-02-22 13:52:45 +01:00
default
e9553379e9 Log (and not notify) repeated likes and announces. 2024-02-21 09:22:32 +01:00
default
34349112f6 New verify_links q_item. 2024-02-20 05:31:34 +01:00
default
5d4e0b0914 Fixed bug in get_attachments(). 2024-02-16 18:20:48 +01:00
default
f5d6223bbf Always return rel=me in msg_actor() links. 2024-02-15 00:17:33 +01:00
default
09d680e7dc Also add the rel=me to metadata links in msg_actor(). 2024-02-14 23:49:45 +01:00
default
0930ce726f New function is_msg_from_private_user(). 2024-02-10 09:08:09 +01:00
default
199d71dc3a Skip our own notifications. 2024-02-05 11:50:59 +01:00
default
6e8e943b14 Some tweaks to retry timeouts. 2024-01-26 18:46:59 +01:00
default
5b3a2fbd88 Use get_attachments() in html_entry(). 2024-01-24 19:30:01 +01:00
default
08898af45c New function get_attachments() (still unused). 2024-01-24 19:13:46 +01:00
default
24cd0c11b9 Don't send anything to the collected inboxes if collection is disabled. 2024-01-24 18:50:57 +01:00
default
5208f9d625 Also process Video in timeline_request(). 2024-01-18 23:26:41 +01:00
default
65040b65a3 New function get_atto(), to get the attributedTo field. 2024-01-18 23:04:37 +01:00
default
f162c07791 Added some support for Peertube videos. 2024-01-18 22:21:05 +01:00
default
5b0fa0a656 Started support for Peertube's Video object. 2024-01-14 18:41:09 +01:00
Stefano Marinelli
6890a15787 Fixed a bug introduced yesterday that cause double notifications 2024-01-13 13:21:53 +01:00
Stefano Marinelli
82d57557bb ntfy code cleanup 2024-01-12 09:07:55 +00: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
4f7a13884e Better checking for CC creation in msg_note(). 2024-01-11 19:29:09 +01:00
default
2693c081b4 If the actor from a message from the shared-inbox fails, propagate.
It may be because the actor request needs to be authenticated.
2024-01-11 06:34:29 +01:00
default
eacfa5b751 Avoid a webfinger request in msg_note(). 2024-01-11 06:08:52 +01:00
default
cc535e9958 Added more webfinger checks, just to be sure. 2024-01-10 19:23:34 +01:00
default
f0d185192b Call srv_archive_error() on input q_item errors. 2024-01-10 18:04:44 +01:00
default
8800ed3892 More tweaks regarding shared inboxes. 2024-01-05 17:37:36 +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
3414ab48c6 In 'Follow', ensure the actor object to be followed is here.
Due to the routing change made for the shared inboxes, local users
are not in the data storage, so this fixes it.
2023-12-28 09:26:08 +01:00
default
90bab08655 More shared inbox tweaks. 2023-12-18 13:40:39 +01:00
default
be3e5c9618 Added some crash checks. 2023-12-18 13:24:07 +01:00
default
52f27123bb Fixed follow / unfollow mess for shared inboxes. 2023-12-18 11:37:02 +01:00
default
45c5c71f9e Fixed Accept + Follow for shared inboxes. 2023-12-18 11:15:53 +01:00
default
af912dba0b actor_request() accepts again an optional snac argument. 2023-12-17 19:53:54 +01:00
default
adf4213756 Deleted debug messages. 2023-12-17 18:40:26 +01:00
default
cbcd573fb5 Also check for the .../followers rcpt for non-public messages. 2023-12-17 17:35:59 +01:00
default
04745f5f7d Blah blah blah is_msg_for_me() blah blah blah 2023-12-17 17:07:26 +01:00
default
9b18d7b377 Even more is_msg_for_me() tweaks. 2023-12-17 16:39:25 +01:00
default
29b6b5c717 Even more is_msg_for_me() updates. 2023-12-17 16:25:04 +01:00
default
935c09125d More is_msg_for_me() tweaks. 2023-12-17 15:58:13 +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
ad718e5b80 Fixed shared inbox distribution logic for Delete messages. 2023-12-17 14:56:09 +01:00
default
5736f38968 Added more code to discard Delete messages earlier. 2023-12-16 15:15:00 +01:00
default
f32c7dd813 More tweaks to is_msg_for_me(). 2023-12-15 22:25:14 +01:00
default
3e3dee8a2f Avoid propagating Undo messages innecesarily. 2023-12-15 21:43:34 +01:00
default
e9f391ed86 Added a special check for Undo + Follow. 2023-12-15 11:08:10 +01:00
default
878943a584 More debug tweaks. 2023-12-14 21:40:50 +01:00
default
a0c6b93d2e More log tweaks. 2023-12-14 19:58:44 +01:00
default
888a79e58a Call process_input_message() from the shared-inbox input.
This way, some garbage like unrequested Deletes from Mastodon
and other transient errors (like unaccessible authors) can be
short-circuited before propagating the message to the users.
2023-12-11 17:59:48 +01:00
default
b1ecaba803 Added a special drop for Delete messages from unknown actors. 2023-12-11 16:59:33 +01:00
default
e78f0bf1b1 Fixed error message. 2023-12-11 16:00:16 +01:00
default
25b0829470 Do not retry Delete messages on actor error. 2023-12-11 15:04:30 +01:00
default
bfdaf380ea More logging tweaks. 2023-12-11 10:41:41 +01:00
default
c06b74cc8e Revert "Reverted actor_request() without user."
This reverts commit 8d0a69cd75.
2023-12-11 10:12:57 +01:00
default
8d0a69cd75 Reverted actor_request() without user.
Some sites require even Person requests to be signed.
2023-12-11 08:00:49 +01:00
default
c693c7c62c Some logging tweaks. 2023-12-11 07:37:53 +01:00
default
88294c5198 Log actor_request() errors. 2023-12-11 07:19:42 +01:00