Replies: 2 comments 2 replies
-
I don't know mastodon enough to implement this, but you can submit a pull request to integrate this if you want 🙂 You just need to handle the api calls to return title, desc, cover image, etc. there: metrics/source/plugins/posts/index.mjs Lines 16 to 35 in 38e85ee And add metrics/source/plugins/posts/metadata.yml Lines 21 to 23 in 38e85ee Along with a mocked test in |
Beta Was this translation helpful? Give feedback.
-
Okay... I tried (keyword) to get a rough idea of a mastodon plugin... I have absolutely no idea if that would be the right aproach here to do, as I do not know JavaScript and honestly just used the posts plugin as a template. The reason for it being a separate plugin instead of being included within mastodon was stated in my above comment, namely that there isn't a single instance, therefore requiring the user to provide a domain, which as a separate posts option feels kinda like bloat to have here. Also, I want to point out one smaller issue with the current setup, which is that it requires a User ID, not name, for the API to return data. And user IDs aren't as easy to get for a normal user. I would implement that... But as mentioned no JavaScript knowledge so can't really work it out. If anything is this meant as a sort of "proof of concept" to maybe even give ideas to work with... And on a kinda related note: Not sure if anything else (i.e. backend) would need an update too to work with this stuff... |
Beta Was this translation helpful? Give feedback.
-
Add support for showing latest toots from Mastodon.
Beta Was this translation helpful? Give feedback.
All reactions