• Resolved TheVoidTLMB

    (@thevoidtlmb)


    Hi,
    A couple of times, on two different WP installs, I have made a post containing a single jpg image before the “more” tag. This image is the first bit of media in the post, and the one I want pushed out. But when the post has pushed through to fedi, the attachment has been an audio or video attachment from further down the post. In the settings, I have the number of media attachments set to “1”. (The new fediverse preview feature does not show any attached media.)
    Examples:
    OGP @[email protected]
    TLMB @thevoidtlmb@tlmb.net
    TLMB ^
    So, it seems like the choice of media attachment is prioritising A/V items over images, rather than the first item(s) in the post (which is what it should be, IMO).
    Is there (or can there be) any way of specifying which media item(s) should be attached? Either by type, or by order of appearance in the post.
    Thanks.

    (P.S. Off-topic: I noticed in Settings>”Supported post types”, you have “Posts” listed twice. That seems confusing.)

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Matthias Pfefferle

    (@pfefferle)

    Hey @thevoidtlmb ??

    the link you shared shows only the video, so I assume that you use the video Post-Format for that post?

    Because Mastodon does only show audios and videos as attachments if there are no other attachments, the plugin only attaches audio files for Audio-Posts and only videos for Video-Posts.

    Thread Starter TheVoidTLMB

    (@thevoidtlmb)

    Hi, I didn’t select video-post format. In fact, I never knew that option existed, and I can’t see it in either of my site’s post editors. (I use Classic Editor in both.) I just searched and found “If you are using a theme that supports post formats, you can apply the format through the Post editor.”
    I’m using Sundance on tlmb.net, and Parament on offgrid.tlmb.net . I can’t see the option to change the post format in either of them, in either the Classic or Block editors.
    https://offgrid.tlmb.net/2024/11/24/unique-elvish-limelight-ep-46/?activitypub is showing type = “Note”.
    Same thing on those other two posts. I used “Add a new post” in the WP Posts menu to create all three of them. So I don’t know how these posts have been interpreted as video or audio posts. Is that going to happen whenever a post has an audio or video file in it? :-/

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    THAT is interesting! For the classic editor, we do not parse media-types other than image!!!

    Do you use a podcasting plugin or something similar?

    Thread Starter TheVoidTLMB

    (@thevoidtlmb)

    For the OGP post, there’s a jpg, then an embedded podcast player from Acast, and then (because it doesn’t show up on iOS9) a simple mp3 download link for the episode. It looks to me like it’s the latter that’s been sent to fedi as the attachment.

    In the “Float…” post, I used “Add media” to embed a couple of short mp4 videos from my media library. The first one of those was pushed (despite several jpgs coming before it in the post.).

    In the “Yo-yo weight loss” post, again, there are 4 jpgs, and then an mp4 video embedded using the html5 embed code from the site it’s hosted on. That video was originally pushed to fedi. That was the first time this happened to me, and I assumed I’d done something wrong, so I went back and tried to edit the post. I can’t remember what edit I made (something minor, I expect), but now the post is showing on fedi without any attachment in moth.social, but with the video on mastodon.social.

    I hope that info is helpful!

    Plugin Author Matthias Pfefferle

    (@pfefferle)

    Can you please link these posts? I am still trying to find out what’s wrong with this post: https://offgrid.tlmb.net/2024/11/24/unique-elvish-limelight-ep-46/?activitypub

    It looks to me like it’s the latter that’s been sent to fedi as the attachment.

    I am not sure about that, because the link above only attaches the audio and does not include any images!

    Are you sure you are not using any podcasting plugins or maybe something else sets the enclosure param for the post?

    I can see one in the feed:

    <enclosure url="https://open.acast.com/public/streams/60ce037e9c98430019c27bcf/episodes/673f5c991ecce96407c7e2f6.mp3" length="0" type="audio/mpeg"/>

    And if there is an enclosure, the plugin also assumes that it is a podcast and focuses on the enclosure file!

    Thread Starter TheVoidTLMB

    (@thevoidtlmb)

    “Can you please link these posts?”
    Are you not seeing the hyperlinks from the two “TLMB” texts in my first post? Well, here they are again in plain:
    https://tlmb.net/blog/float-like-a-yo-yo/
    https://tlmb.net/blog/yo-yo-weight-loss/

    “I am not sure about that, because the link above only attaches the audio and does not include any images!”
    By “the latter”, I meant the mp3 file, so yes, only the audio file has been pushed to fedi.

    “Are you sure you are not using any podcasting plugins or maybe something else sets the enclosure param for the post?”
    I copied the embed code from Acast for their podcast player into the post, but I haven’t installed any WP plugins for that purpose. Sorry if I misunderstood what you meant by “plugin”.
    < iframe src=" https: // embed. acast. com/60ce037e9c98430019c27bcf/673f5c991ecce96407c7e2f6 " width="100%" height="110px" frameborder="0" >< / iframe >
    (spaces added)

    “I can see one in the feed:

    <enclosure url="https://open.acast.com/public/streams/60ce037e9c98430019c27bcf/episodes/blahblahblahredacted.mp3" length="0" type="audio/mpeg"/>

    And if there is an enclosure, the plugin also assumes that it is a podcast and focuses on the enclosure file!”
    I guess that explains the OGP one then. So I’ll switch back to 0 media attachments. Shame.

    I suppose something similar is happening with the 2 TLMB posts. There are videos embedded, so they’re detected as video posts. When I read “Note: audio and video attachments are only supported from Block Editor.“, I thought, “that’s fine, I’m using Classic Editor, so only the image will get pushed.” Guess not. :-/

    Okay then… feature request!
    Separate tick boxes for types of media to include/ignore: images, audio, video.

    Thanks for the answers. And thanks again for this plugin in general.

    Thread Starter TheVoidTLMB

    (@thevoidtlmb)

    Here are all the WP plugins I have installed on the two sites, in case that's relevant.

    OGP
    ActivityPub
    Akismet Anti-spam: Spam Protection
    Bold Grid Easy SEO
    BoldGrid Gallery
    BoldGrid Inspirations
    Classic Editor
    Jetpack
    LH Sortable Tables
    Post and Page Builder
    Post and Page Builder Premium
    WP Super Cache
    WPForms Lite
    Yoast SEO

    TLMB
    ActivityPub
    Classic Editor
    Include Mastodon Feed
    No Self Ping
    Responsive Lightbox & Gallery
    Spicebox
    TablePress
    WP Super Cache
    WP Table Builder
    Plugin Author Matthias Pfefferle

    (@pfefferle)

    @thevoidtlmb all of your posts have the same issue. There are no image attached, only the audio or video. This is because the plugin finds an enclosure and assumes a podcast!

    I have no idea what causes this issue, but I can maybe provide you a code snippet, that removes the focus on enclosures, to add all media types in their order in the post.

    But this way, the plugin would only support images, because audio/video HTML parsing is not supported (yet).

    Thread Starter TheVoidTLMB

    (@thevoidtlmb)

    That sounds like the perfect solution for me, thanks!
    If you need to DM me… https://moth.social/@TheVoidTLMB

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.