From c59deb55bac7c4896afe4e40d56de4662873f286 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Mon, 4 Apr 2022 14:02:14 +0000 Subject: [PATCH] Display account and cleanup FossilOrigin-Name: 6febf43c57caa33f01aaec08f164d010f2e1bfad25215681395552d5df0c378c --- src/base_page.c | 2 +- src/status.c | 4 +++- static/in_reply_to.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/base_page.c b/src/base_page.c index f51403f..4504922 100644 --- a/src/base_page.c +++ b/src/base_page.c @@ -65,7 +65,7 @@ void render_base_page(struct base_page* page, struct session* ssn, mastodont_t* }; if (mastodont_get_notifications(api, &args, &storage, ¬ifs, ¬ifs_len) == 0) - sidebar_str = construct_notifications_compact(notifs, notifs_len, NULL); + sidebar_str = construct_notifications_compact(api, notifs, notifs_len, NULL); mstdnt_cleanup_notifications(notifs, notifs_len); } diff --git a/src/status.c b/src/status.c index 9674dc5..ff068c1 100644 --- a/src/status.c +++ b/src/status.c @@ -134,9 +134,11 @@ char* construct_in_reply_to(mastodont_t* api, struct mstdnt_status* status, size config_url_prefix, status->in_reply_to_id, L10N[L10N_EN_US][L10N_IN_REPLY_TO], - status->in_reply_to_account_id); + acct.acct); if (size) *size = s; + + mastodont_storage_cleanup(&storage); return irt_html; } diff --git a/static/in_reply_to.html b/static/in_reply_to.html index cd8e744..87698bd 100644 --- a/static/in_reply_to.html +++ b/static/in_reply_to.html @@ -1,3 +1,3 @@ - %s %s + %s %s