Indeed, sending direct messages is not yet implemented. I wasn’t aware of the brid.gy use case.
Do you use my Enable Mastodon Apps plugin as well? Maybe it is possible to send such a message through a Mastodon app since many have the ability to set the audience of a status.
Many thanks for confirming that it’s not currently possible – and good to see that it might be implemented!
Yes I did try the enable Mastodon Apps plugin, but I was unable to send a DM from WordPress that way either (using Mona).
-
This reply was modified 1 year, 6 months ago by
simonwood.
With Friends 3.4.0, direct messages should work now. With EMA 1.4.0, you can also send them from Mastodon apps.
Wow, fantastic that this is implemented already.
I haven’t tried DMs with EMA yet but I did have a go at sending a DM from one of my blogs to my Mastodon account. Unfortunately I got an error:
Uncaught Error: Call to undefined method WP_Error::get_id()
in [path]/public_html/wp-content/plugins/friends/feed-parsers/class-feed-parser-activitypub.php on line 485
Call stack:
1 Friends\Feed_Parser_ActivityPub::friends_send_direct_message()
wp-includes/class-wp-hook.php:324
2 WP_Hook::apply_filters()
wp-includes/plugin.php:205
3 apply_filters()
wp-content/plugins/friends/includes/class-messages.php:557
4 Friends\Messages::send_message()
wp-content/plugins/friends/includes/class-messages.php:675
5 Friends\Messages::handle_message_send()
wp-includes/class-wp-hook.php:324
6 WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
7 WP_Hook::do_action()
wp-includes/plugin.php:517
8 do_action()
wp-includes/template-loader.php:13
9 require_once(‘/home/nknv2qp4bb1l/p…/template-loader.php’)
wp-blog-header.php:19
10 require(‘/home/nknv2qp4bb1l/public_html/wp-blog-header.php’)
index.php:17
Query Monitor
Oh, you’ve probably configured ActivityPub to use the blog user. I’ll fix it in https://github.com/akirk/friends/pull/492 and will release a new version soon!
Indeed I have (which turned out to be the reason people on the Fediverse I followed could not see they were being followed by me – and which you were kind enough to fix a few months ago in 3.2.3). Thanks again for looking into this.
Yeah, sorry. I don’t use that configuration and forgot to test it, resp. forgot to use the utility function I created that handles this better. I just release 3.4.1 which should fix it!
Brilliant – yes, that’s fixed it, thanks again for sorting it so quickly.
In related news, my Fediverse enabled blogs bridged to Bluesky now have custom handles, e.g. https://bsky.app/profile/moelrhos.uk which is really neat.