在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):julian-klode/mastodon-comments开源软件地址(OpenSource Url):https://github.com/julian-klode/mastodon-comments开源编程语言(OpenSource Language):Go 100.0%开源软件介绍(OpenSource Introduction):Mastodon comment serverThis implements a simple server that finds the first toot mentioning a query and all replies to that toot and returns it as json. This can be used to embed comments on a blog post: You can post a link to the blog post on your mastodon account, integrate some javascript into your webpage to talk to this server, and all replies to your post announcement toot magically appear on the blog post! IntegrationThe server accepts requests in two formats:
ConfigurationThe comment server can only be started using systemd socket activation.
The provided systemd units make it listen to the unix domain socket
It needs a configuration file as an argument. The configuration file looks like this: {
"url": "https://mastodon.social",
"token": "<your api token here>",
"userid": "<your user id>", // optional, only look for the root for your account
} CachingThe server maintains an in-process cache of the root toots. It is advised that you configure your frontend server to cache the results, for example, in nginx:
The comment server sets a Status codes
To do
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论