• Resolved simonwood

    (@simonwood)


    Is it possible to send direct messages via ActivityPub? I appear to be able to receive direct messages from Mastodon (i.e. ‘mentioned people only’) as they just show up in my feed. I cannot see a way to send them.

    The reason I’d like to send DMs is to use my own domain as my Bluesky handle via Bridgy Fed. Friends has allowed me to use Bridgy Fed since I can now follow @bsky.brid.gy@bsky.brid.gy. But the process for using your own domain as your Bluesky handle requires sending a DM to @bsky.brid.gy@bsky.brid.gywith the text username [domain]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Alex Kirk

    (@akirk)

    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.

    Thread Starter simonwood

    (@simonwood)

    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.
    Plugin Author Alex Kirk

    (@akirk)

    With Friends 3.4.0, direct messages should work now. With EMA 1.4.0, you can also send them from Mastodon apps.

    Thread Starter simonwood

    (@simonwood)

    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

    Plugin Author Alex Kirk

    (@akirk)

    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!

    Thread Starter simonwood

    (@simonwood)

    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.

    Plugin Author Alex Kirk

    (@akirk)

    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!

    Thread Starter simonwood

    (@simonwood)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Direct Messages via ActivityPub?’ is closed to new replies.