Implement Social Platform plugin from Social Post Controller

Created on 15 July 2025, about 1 month ago

Problem/Motivation

Social Post Controller β†’ (SPC) is a Drupal module that was created to make it easier to manage your microblogs from other Drupal content that you want to post about.

It provides a plugin definition, which I would like to implement here. This will basically just allow social post controller to acknowledge that there is integration for bsky, which will both alter the microblog form and enable posting to bsky during SPC's cron (which is actually just processing a posting queue).

Proposed resolution

Implement the plugin for SPC

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @MegaKeegMan
  • πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

    While there is certainly more to do here, I have successfully posted a message via this plugin implementation in the issue fork. The post here currently only contains a message. Before doing more, I need to review and consider building the post data from the SPC side.

  • πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

    Issue title was updated to reflect architectural change, where the plugin definition was moved from Social Post Controller (which was renamed and moved to MPOSSE), and moved into its dependency https://www.drupal.org/project/drutopia_microblog β†’ . The issue fork will need to be updated to reflect the namespacing of the extended base plugin, just a small change.

  • πŸ‡ΊπŸ‡ΈUnited States freelock Seattle

    Hi,

    Plugin looks basically fine, but should use dependency injection to get the bsky.post_service service on line 24...

    Should be along the lines of implementing the ContainerFactoryPluginInterface with a create() method and a constructor...

    Cheers,
    John

  • πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

    Thanks for the feedback, I will try that out

  • πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

    Alright I did update, haven't tested yet. Currently trying to figure out why my IDE is upset about the create function not being compatible with ContainerFactoryPluginInterface

  • πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

    Alright was simply using the wrong use statement for ContainerInterface. Will let you know once I have tested this again

  • πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

    I have tested the code, and it is working okay. I'm not yet ready to add facets or images yet, as I have work to do on the drutopia microblog side and decisions to make. But it is functional and useful as it is now, too.

Production build 0.71.5 2024