Display account and cleanup

FossilOrigin-Name: 6febf43c57caa33f01aaec08f164d010f2e1bfad25215681395552d5df0c378c
This commit is contained in:
me@ow.nekobit.net 2022-04-04 14:02:14 +00:00
parent 6f4dbb5710
commit c59deb55ba
3 changed files with 5 additions and 3 deletions

View file

@ -65,7 +65,7 @@ void render_base_page(struct base_page* page, struct session* ssn, mastodont_t*
};
if (mastodont_get_notifications(api, &args, &storage, &notifs, &notifs_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);
}

View file

@ -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;
}

View file

@ -1,3 +1,3 @@
<span class="in-reply-to">
<a class="in-reply-to-id" href="%s/status/%s"><span class="in-reply-to-text">%s</span></a> <span class="acct">%s</span>
<a class="in-reply-to-id" href="%s/status/%s"><span class="in-reply-to-text">%s</span> <span class="acct">%s</span></a>
</span>