Class: MastodonCommentsElement

MastodonCommentsElement()

https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/

Constructor

new MastodonCommentsElement()

Source:

Methods

buildDialog()

Build the dialog for linking to the user's own Mastodon instance for adding a comment.

Source:

buildMetrics()

Build the icon metrics, (notably replies, reposts, and likes).

Source:

connectedCallback()

Called when the element is added to the DOM.

Source:

(async) loadPost(host, post) → {Promise.<void>}

Load the linked post data along with the OP, number of reposts, etc.

Parameters:
Name Type Description
host string
post string
Source:
Returns:
Type
Promise.<void>