nanos / FediFetcher

FediFetcher is a tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances, and adds them to your own Mastodon instance.
https://blog.thms.uk/fedifetcher?utm_source=github
MIT License
309 stars 230 forks source link

Support for WordPress Mastodon plugin #86

Closed nanos closed 10 months ago

nanos commented 11 months ago

This plugin supports the mastodon API and should therefore be simple enough to add: https://wordpress.org/plugins/enable-mastodon-apps/

Here is a nodeinfo response: https://alex.kirk.at/wp-json/nodeinfo/2.1

{
    "version": "2.1",
    "software": {
        "name": "wordpress",
        "version": "6.3.1",
        "repository": "https://github.com/wordpress/wordpress"
    },
    "usage": {
        "users": {
            "total": 1
        },
        "localPosts": 219,
        "localComments": 211
    },
    "openRegistrations": false,
    "services": {
        "inbound": [
            "atom1.0",
            "rss2.0",
            "pop3"
        ],
        "outbound": [
            "atom1.0",
            "rss2.0",
            "wordpress",
            "smtp"
        ]
    },
    "protocols": {
        "0": "activitypub",
        "inbound": [
            "webmention"
        ],
        "outbound": [
            "webmention"
        ]
    },
    "metadata": {
        "email": "alexanderblog@kirk.at",
        "generator": {
            "name": "NodeInfo WordPress-Plugin",
            "version": "2.1.1",
            "repository": "https://github.com/pfefferle/wordpress-nodeinfo/"
        }
    }
}
nanos commented 10 months ago

Unfortunately this isn't possible, because the plugin identifies itself with

{
  "software": {
    "name": "wordpress",
  }
}

which is the same as https://wordpress.org/plugins/activitypub/ and that plugin (which has more installations) doesn't support mastodon, so we'd be bombarding all those sites with useless traffic