From 38536d9f227811f47c8ea171d04b6b401125be1c Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Tue, 25 Jan 2022 04:04:52 +0000 Subject: [PATCH] Statuses FossilOrigin-Name: 4e38f171086f674b8a90d680c11316074996952e4320d6cdf47eca059ec8eb05 --- Makefile | 2 +- src/index.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1d45ada..9b23f01 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GIT ?= git MASTODONT_DIR = mastodont-c/ MASTODONT = $(MASTODONT_DIR)libmastodont.a CFLAGS = -Wall -I $(MASTODONT_DIR)include/ -LDFLAGS = -L$(MASTODONT_DIR) -lcurl -lmastodont +LDFLAGS = -L$(MASTODONT_DIR) -lcurl -lmastodont -lcjson SRC = $(wildcard src/*.c) OBJ = $(patsubst %.c,%.o,$(SRC)) PAGES_DIR = static diff --git a/src/index.c b/src/index.c index b819414..542127a 100644 --- a/src/index.c +++ b/src/index.c @@ -25,7 +25,7 @@ void content_index(mastodont_t* api) { - struct mstdnt_response response; - mastodont_timeline_public(api, NULL, &response); + struct mstdnt_status* statuses; + mastodont_timeline_public(api, NULL, &statuses); printf(data_index_html, config_canonical_name); }