Constructor
new MastodonCommentsElement()
Methods
buildDialog()
Build the dialog for linking to the user's own Mastodon instance for adding a comment.
buildMetrics()
Build the icon metrics, (notably replies, reposts, and likes).
connectedCallback()
Called when the element is added to the DOM.
(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 |
Returns:
- Type
- Promise.<void>