Use insertAdjacentHTML for the emojo picker:

FossilOrigin-Name: b42f9e4982e0e02f62c1d5de7e41c4fb9d35326149ebab55a853d0bd672cc45e
This commit is contained in:
nekobit 2022-06-26 05:04:41 +00:00
parent 72b8fefc60
commit ff2aa768c9
2 changed files with 5 additions and 3 deletions

2
dist/js/emoji.js vendored
View file

@ -11,5 +11,5 @@ function get_emojo_picker(callback)
}
get_emojo_picker((emojo_picker_str) => {
document.body.innerHTML += emojo_picker_str;
document.body.insertAdjacentHTML('beforeend', emojo_picker_str);
});

View file

@ -125,7 +125,7 @@ void tl_home(struct session* ssn, mastodont_t* api, int local)
struct mstdnt_storage storage = { 0 };
struct mstdnt_timeline_args args = {
.with_muted = 1,
.with_muted = MSTDNT_TRUE,
.local = local,
// Converts to `enum mstdnt_reply_visibility' nicely
.reply_visibility = (ssn->post.replies_only.is_set ?
@ -135,7 +135,9 @@ void tl_home(struct session* ssn, mastodont_t* api, int local)
.max_id = keystr(ssn->post.max_id),
.since_id = NULL,
.min_id = keystr(ssn->post.min_id),
.limit = 20
.offset = 4,
.limit = 20,
.remote = MSTDNT_BOOL_UNSET,
};
try_post_status(ssn, api);