For FediTest, one of the tests is:
We use the Mastodon API both for Mastodon and WordPress. The WordPress side has this plugin, the ActivityPub plugin and the friends plugin.
It appears that on the WordPress side, the ActivityPub HTTP POST of the Create/Note activity triggered by step 2 runs with wp-cron
(which I don’t really understand, except that I think it has some kind of queue that is worked down as a side effect of incoming HTTP requests).
If I suspend the automated test run after step 2, and use a browser to access the WordPress instance, it appears the HTTP POST to the Mastodon inbox is performed. If it runs in unattended mode, the POST is not performed.
I tried to curl https://wordpress/wp-cron.php
and curl https://wordpress/wp-cron.php?doing_wp_cron
but that doesn’t seem to trigger it. Is there some kind of time delay (In one experiment, it worked after about 15 seconds) Or how do I get WordPress to reliably deliver that POST as part of my script?
This is for the FediTest.org project, which develops a test suite for the Fediverse. We are working to integrate a configuration of WordPress (base + ActivityPub + this plugin) that can participate in automated ActivityPub protocol testing. There are lots of parts to this, and one of them is that we want FediTest tests to be able to use the Mastodon API that you implemented (yay!) to cause WordPress to take certain actions, like create a post or check that a follower has arrived. To do that, we need an OAuth token, and we are wondering whether there is a way to obtain such a token in an automated fashion that does NOT require a user going through the UI.
To get such a token, we are willing to take unnatural acts :-), all the way to inserting a value directly into the SQL database. In the context of FediTest, assume we have root access to the machine that runs WordPress.
To be clear, we are not asking for functionality that should ever be run in production. We are asking for a “hack” the FediTest can use in a disconnected container environment, as root, on the same machine as WordPress.
Wouldn’t be surprised if it was as simple as a single INSERT, or calling a single PHP script. Pointers appreciated…
]]>Hello and thanks for this great plugin!
I’m struggling with this one issue. Once the plugin is set up and I log in, it logs me in as the default user or the admin user. This is fine, but I’ve created a blog profile user with the activitypub plugin and I’d like to manage this user which is not related to any user of the blog.
How can I login to the blog profile user?
]]>Why does this plugin re instate the deprecated link manager to the wordpress dashboard?
]]>I have just installled and It ran smoothly until I tried to post something from Tusky app. After 3 seconds on the write toot screen It goes to the timeline screen without saving anything.
Thanks for the work! This plugin is gonna be a game changer for communication sovereignty
]]>Any client I try to log in with gives me an error. With debug enabled I get the following:
params array ( ‘client_name’ => ‘trunks.social’, ‘redirect_uris’ => ‘oauth://trunks.social/authcallback’, ‘scopes’ => ‘write read follow push’, ‘website’ => ‘https://trunks.social’, )
json array ( ‘client_name’ => ‘trunks.social’, ‘redirect_uris’ => ‘oauth://trunks.social/authcallback’, ‘scopes’ => ‘write read follow push’, ‘website’ => ‘https://trunks.social’, )
current_user 0
user_agent ‘Dart/3.2 dart:io ‘
app Enable_Mastodon_Apps\Mastodon_App::__set_state(array( ‘term’ => WP_Term::__set_state(array( ‘term_id’ => 461, ‘name’ => ‘enable-mastodon-apps’, ‘slug’ => ‘enable-mastodon-apps’, ‘term_group’ => 0, ‘term_taxonomy_id’ => 461, ‘taxonomy’ => ‘mastodon-app’, ‘description’ => ”, ‘parent’ => 0, ‘count’ => 0, ‘filter’ => ‘raw’, )), ))
When I try to access /api/v1/apps I get:
{“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method.”,”data”:{“status”:404}}
I have WebFinger, ActivityPub, Nodeinfo, and Friends plugins installed.
]]>I enabled the app, went to my endpoint and all I got:
Warning: file_exists(): open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (###) in /srv/###/wp-admin/includes/misc.php on line 278
]]>Hi there Alex
I tried to connect Ivory to my self-hosted www.ads-software.com site on Pressable. The plugin’s logs indicate that Ivory was authorized but I see this error in Ivory:
Either you don’t have permission to access this or it is no longer available.
This is what I see when I attempt this: https://cln.sh/bnQZnbF6qgqkVZX17QNX
I was able to successfully connect a WordPress.com Business plan site, just not my main site on Pressable.
]]>I have attempted to get my site thecozy.cat set up with the Fediverse and I am having a bit of trouble. I have this plugin, the Activitypub plugin, and the Friends plugin on my site, everything is configured and seems to be working properly. When I look myself up on Mastodon I can see my website’s profile shows up and I am able to follow it from one of my other accounts. However, when try to connect to my site using the Fedilab app so I can make use of this plugin, I get an “unable to find client ID” error. Any idea what I might be doing wrong? Or would this be a plugin issue?
]]>Received
{“error”:”invalid_client”,”error_description”:”No client id supplied”}
when authorizing the app (icecubes).
everything is up to date.
how can i solve?
thanks
]]>I am able to get my wordpress site to load in a modal window using several apps but once I login everything stays in the modal window. Is that how it’s supposed to work?
Some apps including Mastodon and Mammoth app won’t let me login at all. Any ideas?
]]>My Setup:
WordPress 6.3.1
EMA 0.5.0
ActivityPub 1.0
How do I escape this loop and make proper use of Enable Mastodon Apps?
]]>Hi, thx for this plugin, I do think I’ll have a lot of fun with it… Well, for now, it only works when I disable my firewall (AIOWPS), but it seems this is a global conflict with ActivityPub as a whole.
When I could connect (without firewall, then), I used Elk (I like Trunks too, just in case…).
All the text of posts where there, but no image at all. Empty spaces.
They were there, but didn’t show: if I clicked on an empty square, the image would be “opened” in zoom mode.
WP 6.3.1
AP 1.0
EMA 0.5.0
Sincerely
DJM
Hello, I have tried to use this plug-in “Enable Mastodon Apps” in order to interact with my instance with external clients but while authenticating it gives me a 404 error.
My hosting environment is SiteGround.
I have ActivityPub, and Friends plugins installed.
I enabled logging, so, to help you find a possible issue I just provide you the log it generates as soon as I try to authenticate:
params array (
‘scopes’ => ‘read write push follow’,
‘client_name’ => ‘Mona for iPhone’,
‘redirect_uris’ => ‘com.jonny.mona://oauth’,
‘website’ => ‘https://mastodon.social/@MonaApp’,
)
user_agent ‘Mastodon/378 CFNetwork/1406.0.4 Darwin/23.9.0’
I suppose it’s not too helpful; on my 404 monitoring logs, it shows “nodeinfo/2.0”. To try avoiding it, I installed the nodeinfo/2 plugin, with no effect. Could you please be helpful? You need further info? Thanks.
UPDATE: if it can help, I have the login page wp-login which allows me to log in with wordpress.com and patreon. No further theme customization on login.
Tried also with some web clients, nothing changes. It always points to that nodeinfo/2 which does not exist.
UPDATE 2: seems that, deactivating the customized 404 redirect, it has correctly worked. Please verify if there are some issues when having a custom 404 page redirect. Thanks.
]]>I’ve tried using this and it does work, but I cannot post images, at least with Ivory. I get this error: PTHIvoryNativeMediaService.m:127
]]>