Commit graph

142 commits

Author SHA1 Message Date
default
7aa5250eb8 Backport from xs. 2024-03-15 04:10:11 +01:00
default
91bb0615d9 Replaced most xs_dict_iter() with xs_dict_next(). 2024-03-09 08:44:48 +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
b40e71c11c Added a page argument to html_timeline(). 2024-02-21 08:09:57 +01:00
default
644138b2b9 Minor tweak to host-meta. 2024-01-30 08:09:43 +01:00
Paul Wilde
9568ec8bfe cleanup 2024-01-28 21:04:11 +00:00
Paul Wilde
a88254b0a9 Merge branch 'master' of https://codeberg.org/pswilde/snac2 2024-01-28 20:56:48 +00:00
Paul Wilde
2965f1ede4 added host-meta endpoint for subwaytooter app 2024-01-26 16:42:20 +00:00
Paul Wilde
1060baa6ca added host-meta endpoint for subwaytooter app 2024-01-26 15:40:19 +00:00
default
d85113bb1f Delay creating the shared memory struct after the socket is successfully created. 2024-01-21 06:14:51 +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
fdb32864aa New command-line option 'state'. 2024-01-10 19:37:40 +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
aa1524be71 Better behaviour on broken queue items. 2024-01-07 11:13:59 +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
b31abde6bd Minor tweaks to /.well-known/nodeinfo returned data. 2023-12-29 10:58:21 +01:00
default
94a6274a46 Also log the job_fifo len in status.txt. 2023-12-26 18:28:43 +01:00
default
e8b94c1773 New page status.txt.
It just return an empty page as a query, but some status logging is done.
2023-12-26 10:41:55 +01:00
default
be3e5c9618 Added some crash checks. 2023-12-18 13:24:07 +01:00
default
195c21ab2e Avoid crashing on missing 'method' or 'path' headers in httpd_connection(). 2023-12-18 09:35:22 +01:00
default
f4633b9356 Use xs_html in the static greeting page. 2023-11-24 00:05:45 +01:00
default
8417a80fec Added a tag argument to html_timeline(). 2023-11-08 10:14:56 +01:00
default
7787fc7d32 Fixed 'show more' in tag search. 2023-11-08 09:43:49 +01:00
default
55d3ef5024 Tags can now be searched for from the server base URL. 2023-11-08 09:20:34 +01:00
default
6cd3e76890 Added FastCGI support. 2023-10-17 20:02:08 +02:00
default
fbb773ae72 Backport from xs. 2023-10-14 10:04:40 +02:00
default
8524ace23f Hide posts from the public web for accounts with 'private' == true. 2023-10-08 00:06:37 +02:00
default
5f5e4b587e Backport from xs. 2023-09-23 22:02:52 +02:00
default
1d00c4ef66 The nodeinfo file returns more useful information. 2023-08-21 22:49:46 +02:00
default
26f2c40579 The hash 'more_headers' is added to the response HTTP headers. 2023-08-19 12:52:28 +02:00
default
86571f37bb The instance URL can now show a timeline. 2023-08-14 11:24:41 +02:00
default
4c14a2e93c Sanitize local user names in the greeting page. 2023-08-14 09:32:17 +02:00
default
07be3721c1 Some mastoapi tweaks to support the semaphore.social web client. 2023-08-12 21:46:54 +02:00
default
94149d262d Archive unattended method errors. 2023-08-12 19:09:09 +02:00
default
0f8c0cd694 Updated comment in headers. 2023-07-28 11:34:18 +02:00
Yonle
25bb8f0dd2 Rollback to 86f507410b for some reasons.
Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 22:56:18 +07:00
Yonle
75e061a9f7 html.c & httpd.c: Fix hardlink.
Some people may still want to post in the web client with such different
way, Such as posting from Yggdrasil / SSH port forwarder, and so on.

This commit gives the workaround for that purpose, However things will
go messed up when current path were ends with / (Like: user/, admin/).

But overall, If user just uses it like normal, Then things will just
worked well as expected.

Signed-off-by: Yonle <yonle@lecturify.net>
2023-07-24 19:42:20 +07:00
default
d343b40ee5 Added HTTP caching to static data. 2023-07-02 11:11:01 +02:00
default
2f3ed55790 The WWW-Authenticate real also includes the user. 2023-06-24 08:29:29 +02:00
default
3da32bd327 Fixed missing end quote in the WWW-Authenticate header. 2023-06-24 08:07:46 +02:00
default
7eb80e9916 Renamed the HTTP Basic auth realm to something more informative. 2023-06-18 19:34:35 +02:00
default
8c91956947 Replace an sprintf() with an snprintf(). 2023-06-05 18:36:36 +02:00
default
65f5173c2a Moved srv_running variable to httpd.c. 2023-06-05 18:18:50 +02:00
default
efec8a6eae If sem_open() fails, try again with sem_init(). 2023-05-25 17:20:21 +02:00