From 74a623dd1f552a680e2b3568460e62fe2a85c46b Mon Sep 17 00:00:00 2001 From: "i.j" Date: Sat, 3 Dec 2022 12:43:02 +0000 Subject: [PATCH] Show replies toots by default. Update wording. --- src/mastodon-timeline.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mastodon-timeline.js b/src/mastodon-timeline.js index 83fffa9..c54f6f4 100644 --- a/src/mastodon-timeline.js +++ b/src/mastodon-timeline.js @@ -1,7 +1,8 @@ -// Mastodon embed timeline -// Forked from: https://github.com/AzetJP/mastodon-timeline-widget +// Mastodon embed feed timeline +// More info at: +// https://gitlab.com/idotj/mastodon-embed-feed-timeline -// Account settings +// Timeline settings document.addEventListener("DOMContentLoaded", () => { let mapi = new MastodonApi({ container_id: 'mt-timeline', @@ -11,7 +12,7 @@ document.addEventListener("DOMContentLoaded", () => { profile_name: '@idotj', toots_limit: 13, hide_reblog: false, - hide_replies: true, + hide_replies: false, btn_see_more: 'See more posts at Mastodon' }); }); @@ -79,7 +80,7 @@ MastodonApi.prototype.getToots = function () { allHashtags[j].rel = "tag noopener noreferrer"; } - // Insert button to visit account page, after last toot + // Insert button after last toot to visit account page this.mtBodyContainer.insertAdjacentHTML('beforeend', '
' + mapi.BTN_SEE_MORE + '
'); }) .catch(err => {