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
default
5de1a9ce0c
Rewritten history_get() prototype to match static_get().
2023-08-19 09:31:13 +02:00
default
69dbacda27
Bumped version.
2023-08-18 18:34:29 +02:00
default
033f6909eb
Version 2.40 RELEASED.
2023-08-16 08:25:59 +02:00
default
3f7e3c1d81
Unify the instance description text.
2023-08-14 18:02:20 +02:00
default
86571f37bb
The instance URL can now show a timeline.
2023-08-14 11:24:41 +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
1763e3347e
Added support for limiting followed users.
2023-08-06 18:40:50 +02:00
default
66e34b3a43
Version 2.39 RELEASED.
2023-08-06 06:48:45 +02:00
default
4d18ed9850
Bumped version.
2023-08-02 08:43:47 +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
default
e95d422be3
Bumped version.
2023-07-24 13:36:42 +02:00
default
e6d5ce2654
Version 2.38 RELEASED.
2023-07-17 10:41:19 +02:00
default
eee1916858
Fixed prototypes.
2023-07-14 08:47:20 +02:00
default
a2874b4b49
Bumped version.
2023-07-13 21:13:37 +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
137f775605
Minor prototype tweak.
2023-07-13 17:58:18 +02:00
default
5ddde84eaa
Version 2.37 RELEASED.
2023-07-13 16:51:04 +02:00
default
1c5a689457
Fixed some memory leaks.
2023-07-11 19:45:58 +02:00
default
1a94d7c05b
Revert "New server config array "webfinger_domains"."
...
This reverts commit f2e0b77478
.
2023-07-10 07:19:51 +02:00
default
d2aa5727ba
Fixed failed mkdir() in restricted environments.
2023-07-09 20:23:38 +02:00
default
c562a4531c
Bumper version.
2023-07-08 09:58:01 +02:00
default
f2e0b77478
New server config array "webfinger_domains".
2023-07-08 09:57:40 +02:00
default
321d9fb069
Version 2.36 RELEASED.
2023-07-07 08:30:24 +02:00
default
38ee86f81e
Also call process_tags() when in the public timeline's bio.
2023-07-04 17:15:38 +02:00
default
d343b40ee5
Added HTTP caching to static data.
2023-07-02 11:11:01 +02:00
default
61957a86da
Added instance blocking to data storage.
2023-06-29 08:07:10 +02:00
default
af180685bd
Added some error control to pinning.
2023-06-28 20:52:09 +02:00
default
3559a0f1f2
New pinning in data storage.
2023-06-28 20:26:59 +02:00
default
1b1cb2dc38
Bumped version.
2023-06-16 09:26:17 +02:00
default
57761020b7
Version 2.35 RELEASED.
2023-06-15 18:28:24 +02:00
default
e0c6fb786c
New function webfinger_request_signed().
2023-06-13 20:36:43 +02:00
default
b77ef13d2c
Don't enqueue a request_replies message if it's already there.
2023-06-07 13:09:19 +02:00
default
ecde1c219e
New function enqueue_request_replies().
...
This way, the (potentially expensive and slow) call to
timeline_request_replies() is detached from actions like
replying a message from the web ui.
2023-06-07 12:04:59 +02:00
default
125317ac47
Some prototype update.
2023-06-07 11:08:14 +02:00
default
e788a5bf8f
Some prototype tweaks.
2023-06-05 18:22:04 +02:00
default
65f5173c2a
Moved srv_running variable to httpd.c.
2023-06-05 18:18:50 +02:00
default
0d817340e2
If a user config field 'bot' is set to true, identies as such.
2023-06-04 10:48:03 +02:00
default
3a8005f9bf
Updated some data types.
2023-06-04 10:34:39 +02:00
default
c69d0c1878
Version 2.34 RELEASED.
2023-06-03 18:18:47 +02:00
default
3b72b0f0ac
New function was_question_voted().
2023-05-31 22:06:31 +02:00
default
be39b52064
Create the base message of msg_question() from msg_note().
2023-05-30 05:54:45 +02:00
default
7659362448
Enqueue a close_question user q_item.
2023-05-29 11:07:38 +02:00
default
654e171b93
New macro ISO_DATE_SPEC.
2023-05-29 09:07:27 +02:00
default
8551c691fb
New function update_question().
2023-05-29 08:27:16 +02:00
default
50624547e4
Version 2.33 RELEASED.
2023-05-27 19:37:47 +02:00
default
5d8e370ec3
More prototype tunnings.
2023-05-24 13:05:43 +02:00
default
0d8a040d90
Added some experimental 'Question' posting code.
2023-05-24 11:49:16 +02:00
default
9bc4825507
New function msg_question() (unused).
2023-05-24 11:07:47 +02:00
default
2ab5b017b6
Bumped version.
2023-05-21 20:33:20 +02:00
default
49362f5404
Convert image links in notes to attachments.
2023-05-21 20:32:23 +02:00
default
63053ab5db
Minor prototype change.
2023-05-21 20:11:06 +02:00
default
ecdb7f5437
Version 2.32 RELEASED.
2023-05-18 16:33:19 +02:00
default
e6eb1adc65
Also find local users in /api/v1/search.
2023-05-15 13:04:30 +02:00
default
d3c1b3127a
Bumped version.
2023-05-15 11:15:53 +02:00
default
e9588a71ae
Add /v1/account/search support.
2023-05-15 11:15:28 +02:00
default
47ce73553f
Version 2.31 RELEASED.
2023-05-13 16:56:06 +02:00
default
e2e7bc2d71
Added a source (web, mastoapi, etc) to lastlog_write().
2023-05-08 09:02:45 +02:00
default
699702cd72
Bumped version.
2023-05-07 09:38:45 +02:00
default
6a1cc55676
Version 2.30 RELEASED.
2023-05-07 08:54:54 +02:00
default
d3a36218a6
Implemented 'Ping' and 'Pong' activities.
...
According to https://humungus.tedunangst.com/r/honk/v/tip/f/docs/ping.txt
2023-05-05 09:54:41 +02:00
default
753eadfd17
Added some const here and there.
2023-05-04 09:25:09 +02:00
default
511f5062b7
Deleted real unused parameters.
2023-05-04 09:19:26 +02:00
default
4595a36859
Partial support for mastoapi unfavourite / unreblog.
2023-05-01 17:20:49 +02:00
default
cfa0df3ac5
The instance timeline now works.
2023-04-30 07:00:49 +02:00
default
ede4d6f2dc
Some instance timeline work.
2023-04-30 06:39:55 +02:00
default
6b632e1ee9
Bumped version.
2023-04-30 06:01:08 +02:00
default
fbd30cf6d3
Version 2.29 RELEASED.
2023-04-28 09:25:54 +02:00
default
765f63772f
New function mastoapi_purge() (still dummy).
2023-04-28 08:33:02 +02:00
default
b8eace33c9
Store the what-is-snac URL as a CPP constant.
2023-04-25 06:40:46 +02:00
default
043cd5c50b
Fixed warning.
2023-04-23 08:59:14 +02:00
default
4fca7c8a7e
Added mastoapi unfollow.
2023-04-23 08:51:02 +02:00
default
291f251ced
Added mastoapi follow.
2023-04-23 08:44:26 +02:00
default
88850bdc46
Attend mastoapi relationships.
...
Now, the follow/unfollow buttons appear on each account's page.
2023-04-23 06:05:35 +02:00
default
5b93e9069e
Added mastoapi code for account search.
2023-04-23 05:33:54 +02:00
default
99529a9874
Version 2.28 RELEASED.
2023-04-23 03:29:54 +02:00
default
2b80873a28
History functions fail on ids with /.
2023-04-22 08:02:23 +02:00
default
8804227798
New function mastoapi_put_handler().
2023-04-22 01:21:09 +02:00
default
66d5acc822
Use static_get_meta() when preparing the attachment.
2023-04-22 00:51:06 +02:00
default
8c4850df50
New functions to get and set metadata into static files.
2023-04-22 00:24:15 +02:00
default
0240c871f3
New function user_open_by_md5().
2023-04-16 07:43:41 +02:00
default
81100cb825
Posts can now be sent (still no images).
2023-04-15 19:05:26 +02:00
default
9e7a77c10f
New mastoapi to clear all notifications.
2023-04-14 19:39:31 +02:00
default
bd21d144de
New function timeline_touch().
2023-04-14 19:17:16 +02:00
default
1a27e67ed9
New functions notify_get() and notify_list().
2023-04-13 17:34:48 +02:00
default
211bedd497
New function notify_check_time().
2023-04-13 17:12:07 +02:00
default
bcde97c2d5
New function notify_add().
2023-04-13 16:59:17 +02:00
default
c2f5748a9d
Version 2.27 RELEASED.
2023-04-13 10:07:24 +02:00
default
885031bed9
Don't generate invalid JSON if an attachment has no description.
2023-04-12 10:41:15 +02:00
default
5046531d43
New functions object_ctime() and object_ctime_by_md5().
2023-04-12 09:46:42 +02:00
default
93008cfc3e
New function f_ctime().
2023-04-12 09:43:23 +02:00
default
79224ca2b5
New function mastodon_status().
2023-04-11 09:50:12 +02:00
default
4ced03bac1
OAuth login now works.
2023-04-09 20:34:05 +02:00
default
4964a56456
More mastoapi work.
2023-04-08 09:09:43 +02:00
default
eba6987fd5
Added some OAuth scaffold code.
2023-04-08 07:04:40 +02:00
default
353e393f4d
New file mastoapi.c.
2023-04-08 06:09:05 +02:00
default
1fe34ffb4a
New function lastlog_write().
2023-04-05 23:46:51 +02:00
default
5d26f31a8a
Fixed overzealous rejection of Announces.
2023-04-05 23:23:19 +02:00
default
1cdd6d1996
Version 2.26 RELEASED.
2023-04-05 09:19:51 +02:00
default
1722b2891d
Bumped version.
2023-04-01 04:22:36 +02:00
default
ba787061d8
Version 2.25 RELEASED.
2023-03-08 20:17:33 +01:00
default
e3e45b7c98
New function is_msg_for_me().
2023-03-06 14:28:53 +01:00
default
60f77b6cad
msg_update() sends copies the 'to' and 'cc' fields in notes.
2023-03-06 11:26:43 +01:00
default
b2ce9323db
Added the url to srv_archive().
2023-03-02 17:13:17 +01:00
default
5036cb5e11
Connection jobs are treated as urgent.
2023-03-02 12:38:02 +01:00
default
987f1d288b
Bumped version.
2023-03-02 09:30:23 +01:00
default
29b12498dd
Simplified is_msg_public().
2023-03-02 09:15:40 +01:00
default
5e3c50d6e1
New inbox collection functions.
2023-03-02 08:43:50 +01:00
default
d75a22adab
New function srv_archive_error().
2023-03-01 08:25:36 +01:00
default
cb9e82acf7
Version 2.24 RELEASED.
2023-02-25 18:17:51 +01:00
default
1630519066
Deleted index_del_md5() and index_del().
2023-02-23 18:43:52 +01:00
default
307c9420c3
New function index_gc().
2023-02-23 10:42:09 +01:00
default
2bfebba7be
Don't wait for 3 seconds if there were some q_items processed.
2023-02-22 08:39:54 +01:00
default
5230435b31
New boolean argument 'priv' to msg_note().
2023-02-20 09:32:44 +01:00