Commit graph

442 commits

Author SHA1 Message Date
Louis Brauer
26fbda787d Translate status codes to canonical status texts
Use those in HTTP responses instead of "OK"/"ERROR".
Apps like Tokodon show only the status text in unexpected responses.
2024-05-27 19:01:04 +02:00
Louis Brauer
4621a25ba4 Merge remote-tracking branch 'origin/master' 2024-05-27 12:25:38 +02:00
Louis Brauer
81cf309e4d Implement Mastodon PATCH endpoint for account profile updates 2024-05-27 12:24:17 +02:00
Louis Brauer
0e21d35e80 Use enum instead of numeric status codes for HTTP statuses 2024-05-26 21:45:41 +02:00
default
db5a72b6a0 Bumped version. 2024-05-26 09:29:38 +02:00
default
4777fc86cb Added const everywhere. 2024-05-21 14:12:15 +02:00
default
b95fbe4e43
Version 2.53 RELEASED. 2024-05-16 15:47:43 +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
6f3763f452 Show 'Event' object types as Notes. 2024-05-11 19:15:18 +02:00
default
e1ce85debd Unified post-like object type match. 2024-05-11 18:46:15 +02:00
default
a0d98f3d2a Bumped version. 2024-05-11 09:37:34 +02:00
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
979f2ad140 Rewritten content_search() to read from both timelines. 2024-05-08 16:43:02 +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
82ec4ea95c Minor "Back to top" "More..." link refactoring. 2024-05-07 20:32:13 +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
c5ae10af86
Version 2.52 RELEASED. 2024-05-07 10:24:38 +02:00
default
45357b8e6e New function timeline_to_rss(). 2024-05-05 11:00:29 +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
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
1a6bb79921 New function msg_repulsion. 2024-04-10 18:27:17 +02:00
default
abb4f16c71 Bumped version. 2024-04-09 06:33:49 +02:00
default
86626e5b56 Version 2.51 RELEASED. 2024-04-04 10:13:06 +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
bc752b7d67 Emojis are now read from ~/emojis.json. 2024-03-25 15:33:14 +01:00
default
6fb0b9c0d0 Bumped version. 2024-03-23 07:51:10 +01:00
default
38110ae072 Version 2.50 RELEASED. 2024-03-22 10:00:12 +01:00
default
66c42da77a Queue actor request renamed to actor_refresh. 2024-03-12 19:47:37 +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
60c2a50ed9 New function content_check(). 2024-03-11 06:00:21 +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
c2fb2a4034 Bumped version. 2024-03-07 09:57:03 +01:00
default
ea4dd9bed7 Version 2.49 RELEASED. 2024-03-04 18:40:58 +01:00
default
91207fbe39 mastoapi: fixed a bug in validated links. 2024-02-28 15:16:28 +01:00
default
99f486cec0 Version 2.48 RELEASED. 2024-02-28 10:31:52 +01:00
default
d4364e80f7 Added *another argument* to html_timeline() to select where posts are taken from.
This way, the /instance logged-in timeline can show posts that are not
really into a user's timeline.
2024-02-22 12:26:32 +01:00
default
e9553379e9 Log (and not notify) repeated likes and announces. 2024-02-21 09:22:32 +01:00
default
bc3c7dde33 More local -> read_only argument renamings. 2024-02-21 08:12:10 +01:00
default
b40e71c11c Added a page argument to html_timeline(). 2024-02-21 08:09:57 +01:00
default
34349112f6 New verify_links q_item. 2024-02-20 05:31:34 +01:00
default
39d3f5b2c3 Bumped version. 2024-02-16 05:28:32 +01:00
default
c3b50574ac New function verify_links(). 2024-02-15 19:24:10 +01:00
default
263e239653 Moved verified links to its own json file. 2024-02-15 17:34:46 +01:00
default
552bb377ba Version 2.47 RELEASED. 2024-02-12 11:16:54 +01:00
default
0930ce726f New function is_msg_from_private_user(). 2024-02-10 09:08:09 +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
67fbc6816b Bumped version. 2024-02-05 19:20:27 +01:00
default
729ad476f0 notify_list() no longer has a new_only argument. 2024-02-05 10:18:38 +01:00
default
b3e289b40b Version 2.46 RELEASED. 2024-01-29 16:41:29 +01:00
default
5b3a2fbd88 Use get_attachments() in html_entry(). 2024-01-24 19:30:01 +01:00
default
c00a544b76 Bumped version. 2024-01-23 16:26:16 +01:00
default
65040b65a3 New function get_atto(), to get the attributedTo field. 2024-01-18 23:04:37 +01:00
default
02998ebb59 Version 2.45 RELEASED. 2024-01-18 19:54:49 +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
James Seward
c3fb6bab77 Support DELETE for Mastodon subscriptions
While testing Mona, I noticed that after deleting my account entry for
my snac server, Mona would repeatedly try to delete the subscription it
thought it had created, resulting in many unhandled DELETE calls.

This accepts the call and returns 200 for it, which makes Mona happy.
2024-01-11 13:38:08 +00:00
default
7f6a793146 Fixed minor collision in webfinger caching. 2024-01-10 19:16:05 +01:00
default
1d3157f496 Version 2.44 RELEASED. 2024-01-10 15:11:03 +01:00
default
06302c6451 Minor code cleaning. 2024-01-10 09:16:40 +01:00
default
d05399986d New state variable top_job_fifo_size. 2024-01-08 09:17:38 +01:00
default
62b2c2838c Renamed some thread states. 2024-01-08 08:50:40 +01:00
default
b401cd23ff Added some state flags for threads. 2024-01-08 08:38:25 +01:00
default
0289860d04 Non-important variable renaming. 2024-01-08 08:21:22 +01:00
default
93e7138e53 Rewritten part of the job threads to be leaner and faster. 2024-01-08 08:10:57 +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
af912dba0b actor_request() accepts again an optional snac argument. 2023-12-17 19:53:54 +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
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
09b926c168 More functions do not require the user argument. 2023-12-10 17:50:03 +01:00
default
0e6c5f9463 actor_request() does not need a user argument. 2023-12-10 17:46:54 +01:00
default
bad729c631 Started work to support shared inboxes. 2023-12-06 14:46:51 +01:00
default
bc5d0d4ed0 Replaced encode_html_strict() with xs_html_encode(). 2023-11-20 18:33:24 +01:00
default
b68ed66669 Version 2.43 RELEASED. 2023-11-20 11:42:17 +01:00
default
8417a80fec Added a tag argument to html_timeline(). 2023-11-08 10:14:56 +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
0d78deef42 New function deluser(), to delete a user.
Only unfollows by now.
2023-10-22 09:00:37 +02:00
default
24d8ead64c Bumped version. 2023-10-17 20:02:23 +02:00
default
d17aa86c5b Version 2.42 RELEASED. 2023-10-17 17:05:53 +02:00
default
b1868d85bb New function encode_html_strict(). 2023-10-04 18:19:38 +02:00
default
60e8953a69 Give more retry time to timedout connections. 2023-09-29 10:34:22 +02:00
default
9cce2ee119 Some tweaks to the logging system. 2023-09-27 13:19:46 +02:00
default
f8c62fe210 Pinned posts are never purged. 2023-09-18 22:52:27 +02:00
default
b1e9a00522 Bumped version. 2023-09-06 14:33:51 +02:00
default
9279708af9 Version 2.41 RELEASED. 2023-08-30 11:15:17 +02:00
default
dae2e406d6 history_add() now creates an etag. 2023-08-19 09:59:58 +02:00
default
3bdc484206 Merge branch 'master' of triptico.com:git/snac2 2023-08-19 09:31:20 +02:00