summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-27 21:14:23 +0200
committerGravatar grunfink2025-05-27 21:14:23 +0200
commit5bc451159420d5d51a507fda82a623069cfae92b (patch)
tree725767368e77caa9751d39778b046b5ad00e4806 /mastoapi.c
parentRenamed timeline_here() to timeline_here_by_md5(), as it always should have b... (diff)
downloadsnac2-5bc451159420d5d51a507fda82a623069cfae92b.tar.gz
snac2-5bc451159420d5d51a507fda82a623069cfae92b.tar.xz
snac2-5bc451159420d5d51a507fda82a623069cfae92b.zip
New function timeline_here().
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mastoapi.c b/mastoapi.c
index c88fd1b..df713a8 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2508,9 +2508,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2508 /* reply something only for offset 0; otherwise, 2508 /* reply something only for offset 0; otherwise,
2509 apps like Tusky keep asking again and again */ 2509 apps like Tusky keep asking again and again */
2510 if (xs_startswith(q, "https://")) { 2510 if (xs_startswith(q, "https://")) {
2511 xs *md5 = xs_md5_hex(q, strlen(q)); 2511 if (!timeline_here(&snac1, q)) {
2512
2513 if (!timeline_here_by_md5(&snac1, md5)) {
2514 xs *object = NULL; 2512 xs *object = NULL;
2515 int status; 2513 int status;
2516 2514