Closed janboddez closed 1 year ago
Like, if we know the instance URL and user name (which we can get from /api/v1/accounts/verify_credentials
?), we could do something like:
add_filter( 'micropub_syndicate-to', function( $syndicate_to, $user_id ) {
$syndicate_to[] = array(
'uid' => 'https://<instance-url>/@<username>',
'name' => 'Mastodon',
);
return $syndicate_to;
}, 10, 2 );
So, it isn't the prettiest implementation, but I added this here: 3c38700
Why not add compatibility with the Micropub plugin? Most users wouldn't even notice, and the few that would could disable it (this is probably technical enough that it can go behind a filter).