Commit graph

218 commits

Author SHA1 Message Date
default
6e470440f9 Rewritten notify() to write the message in bulk.
This was meant to avoid some 32 EPIPE from sendmail,
but it's still happening.
2022-10-21 10:26:45 +02:00
default
a52ed9be78 New function notify(). 2022-10-21 09:41:29 +02:00
default
a16600e330 Better 'Delete' message logging. 2022-10-20 10:34:32 +02:00
default
395f80bdc4 Added support for HEAD methods.
Mastodon uses them when it founds an attachment.
2022-10-16 19:00:17 +02:00
default
78ec3b077b Media can be attached to notes.
The web interface limits this (by now) to only one
attachment, given the URL.
2022-10-10 09:03:15 +02:00
default
849913dc59 Use the time functions of xs_time.h. 2022-10-02 09:27:17 +02:00
default
be3191ee5d Fixed crash. 2022-10-01 21:01:54 +02:00
default
366c23ab85 Also accept 'Delete' on input. 2022-10-01 19:48:13 +02:00
default
82e9a03925 Implemented 'Delete'. 2022-10-01 19:37:47 +02:00
default
37925a020e timeline_request() also triggers an actor_request(). 2022-10-01 18:48:05 +02:00
default
2c00c7b0b5 New web action 'Unfollow'. 2022-10-01 09:12:33 +02:00
default
fa9c90c00e Add a date to a Follow message if it doesn't include one. 2022-09-30 18:12:32 +02:00
default
392c014c26 New function check_signature() (incomplete). 2022-09-29 14:44:24 +02:00
default
49bca7e273 html_entry() is built in its own string and then added.
This will be faster.
2022-09-29 09:11:43 +02:00
default
c5a7a9c475 Treat 410 Gone from actors specially. 2022-09-28 21:09:50 +02:00
default
2be2c07e9c The input queue also has retries. 2022-09-28 20:41:07 +02:00
default
51ed24be47 If an actor cannot be retrieved, move the message back to the queue. 2022-09-28 20:24:47 +02:00
default
e4967cfcb3 Process 'Update' + 'Person'. 2022-09-28 20:08:02 +02:00
default
c38cc09e4c Process 'Undo' + 'Follow'. 2022-09-28 19:59:19 +02:00
default
045498652f 'Announce' messages also try to bring the announced actor. 2022-09-28 07:12:16 +02:00
default
3b8a43013d Check for muted actors in Announce messages. 2022-09-28 05:16:17 +02:00
default
03b0e105b5 Delete the _snac field in outbox. 2022-09-28 04:52:17 +02:00
default
32661d2be7 The outbox returns now some entries. 2022-09-28 04:48:23 +02:00
default
94ef803701 Timeline pages are also served. 2022-09-27 19:00:24 +02:00
default
66a7f633b3 Call process_tags() from msg_note(). 2022-09-27 18:33:25 +02:00
default
b6c4906c6a New function process_tags() (untested). 2022-09-27 18:20:25 +02:00
default
8ac32f0d81 'Accept' messages are processed. 2022-09-27 15:38:09 +02:00
default
05bf4b2c3c New function msg_follow(). 2022-09-27 15:28:08 +02:00
default
6144e0eeeb More work in msg_note(). 2022-09-27 14:50:13 +02:00
default
0b6540f503 Notes can be posted WOW!. 2022-09-27 14:07:36 +02:00
default
26a3b260d5 Started function not_really_markdown(). 2022-09-27 09:38:46 +02:00
default
ec9115717b 'Follow' messages are now processed. 2022-09-27 07:54:05 +02:00
default
e550e86afb Check the digest before enqueueing. 2022-09-27 07:16:46 +02:00
default
8f738e1417 Serve the actor as the correct content-type. 2022-09-26 12:29:26 +02:00
default
fd6f71bfe3 More work but signatures seem to still fail. 2022-09-26 11:19:45 +02:00
default
acc467c034 New function msg_admiration(). 2022-09-26 10:08:14 +02:00
default
f410e3a40a New function post. 2022-09-26 09:28:39 +02:00
default
c37a99b97c New function is_msg_public(). 2022-09-26 09:25:35 +02:00
default
e0e86d269a Renamed to recipient_list(). 2022-09-26 09:22:32 +02:00
default
46ee4a4a18 New function recipients(). 2022-09-26 09:22:05 +02:00
default
74aef6994a Link to local if the child id is from this actor. 2022-09-26 09:08:03 +02:00
default
5321295005 Resolve object id instead of discarding like or boost. 2022-09-26 07:19:45 +02:00
default
d1a2a7438d New metadata 'referrer', that contains an actor.
This field contains the actor that boosted an entry.
2022-09-26 07:13:39 +02:00
default
b5be6a0172 Return the correct content-type. 2022-09-26 00:01:19 +02:00
default
d86f6ee27f Backported from xs. 2022-09-25 22:57:18 +02:00
default
a63c9c24c1 Avoid crashing on empty q_items. 2022-09-25 21:55:29 +02:00
default
bf1ee12da2 More sign work (I'm tired). 2022-09-25 21:45:58 +02:00
default
e132ce5076 New function msg_actor(). 2022-09-25 21:02:47 +02:00
default
6f7f98ded3 Fixed a bug in the digest header. 2022-09-25 18:50:53 +02:00
default
6169932733 New function timeline_request(). 2022-09-25 18:28:15 +02:00
default
bb70101fec New function timeline_admire(). 2022-09-25 17:42:39 +02:00
default
4f328eec1f Some fixes to timeline_add(). 2022-09-25 09:07:43 +02:00
default
5792ef5d24 Process 'Create' messages (untested). 2022-09-25 07:58:25 +02:00
default
b070d2d8f8 The HTTP request headers are stored in a plain dict. 2022-09-25 07:42:57 +02:00
default
e9afd7cd13 More work. 2022-09-24 11:54:35 +02:00
default
a7202dcd1c More message work. 2022-09-24 11:04:35 +02:00
default
ea57b47264 Started creating messages. 2022-09-24 10:43:57 +02:00
default
a6712ba79a Also store the req object in enqueue_input(). 2022-09-24 10:03:27 +02:00
default
3df33c845d More ActivityPub work. 2022-09-23 23:49:09 +02:00
default
c181c57f56 New function enqueue_input(). 2022-09-23 23:09:09 +02:00
default
b4a4fa0b0d Fixed memleak. 2022-09-23 21:01:35 +02:00
default
6e6c315494 New function activitypub_get_handler(). 2022-09-23 20:59:19 +02:00
default
1d694a245a xs_httpd_request() also returns the payload. 2022-09-23 20:28:23 +02:00
default
bbf5471039 New function process_queue(). 2022-09-23 19:37:01 +02:00
default
cf59d68491 New functions send_to_inbox() and send_to_actor(). 2022-09-23 19:07:45 +02:00
default
6586be50a0 Fixed bug in actor_request(). 2022-09-23 18:46:30 +02:00
default
a0bcc4e6c0 Improved activitypub_request(). 2022-09-23 18:15:59 +02:00
default
bdc166111d [activitypub.c] New file. 2022-09-23 17:33:33 +02:00