TheVoidTLMB
Forum Replies Created
-
Forum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected oneSorry,
-bash: syntax error near unexpected token `'https://tlmb.net/blog/wp-content/uploads/2025/04/BigElbowsUniversityChallenge.jpg''Forum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected oneNavigated to my blog folder, ran it, and got:
-bash: syntax error near unexpected token `’https://tlmb.net/blog/wp-content/uploads/2025/04/BigElbowsUniversityChallenge.jpg”Forum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected oneThanks. WP 6.8.1. AP 5.9.2 (but I think it was still 5.9.0 when I made that post).
Forum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected oneHi,
Thanks for replying. Yes, I’m still using Classic Editor. I upload images to the media library, before using Classic Editor’s “Add Media” button to insert them into the post. So they’re just there in an html < a >< img … >< /a > tag.
Under “Supported post types”, I only have “Posts” ticked, not “Media”, as the latter suggests to me that any item uploaded to the media gallery will get its own individual APub share, and that’s not what I want. Have I understood that right?
Here’s the html for the image.<a href="https://tlmb.net/blog/wp-content/uploads/2025/04/BigElbowsUniversityChallenge.jpg"> < img class="alignnone size-full wp-image-3773" src="https://tlmb.net/blog/wp-content/uploads/2025/04/BigElbowsUniversityChallenge.jpg" alt="Warwick on University Challenge, 2025. Hart has infected Siddle with the high-elbow buzzer technique." width="753" height="288" /></a>
(Space added to the img tag to stop this forum embedding the image.)
The current version now only supports parsing blocks and HTML.
Then shouldn’t it find the img tag in the html? Is there no hope for this working if I continue to use Classic Editor?Forum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected oneI still have the same issue. :-/ Here’s the latest post, with a jpg before the More tag, and no video or audio files in the post. (But a script to embed a crossword.) There’s no jpg there when it appears in Mastodon. Setting for “Media attachments” is 1.
https://tlmb.net/blog/big-elbows/
https://social.vivaldi.net/@thevoidtlmb@tlmb.net/114432085916844907
“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.”
Yes please? (My Moth account linked above is dead now.)Forum: Plugins
In reply to: [ActivityPub] Import Mastodon (Beta)Okay, good to know it’s the theme, not the importer, at fault. Thanks.
Forum: Plugins
In reply to: [ActivityPub] Import Mastodon (Beta)Hi, here’s the link to the first of the 4 posts. The apparent extra line break appears on all four of them.
https://tlmb.net/blog/3746-2/
Compare with the post below it “5 Years…” or any older than that.
(I can’t paste the code here, it just appears as the post text, even though I’m using the inline code button.)Forum: Plugins
In reply to: [ActivityPub] Import Mastodon (Beta)Tried again with 5.8:
Deleted the 4 posts I created last time, then deleted the two files from the Media Library. Re-imported the same .zip archive, and got 4 new posts, this time with the video embedded in the post, and the image’s Alt Text in its Alt Text field. ๐ Yay, thanks!
One really small thing: There are usually two line breaks between the date stamp of the WP post and its content (in my theme, at least), but on these imported posts, there appears to be three. Looking at View Source, there are no extra<br>s, so I think it might just be that there’s a line of a couple of spaces (tabs?) in the code after<div class="entry-content">. As it is, the date stamp looks half-way between one post and the next. See…https://social.vivaldi.net/@TheVoidTLMB/114394053143071337
Cheers, VoidForum: Plugins
In reply to: [ActivityPub] Import Mastodon (Beta)Ha, my timing is terrible! ๐ I’ll try again with 5.8, thanks.
Noted re a bulk-replacer, yep. And yes, I did mean optional re-categorising. That would be cool – and maybe adding tags too? Although perhaps both is overkill.Forum: Plugins
In reply to: [ActivityPub] Import Mastodon (Beta)Oh, and all are posted under the WP category of “Uncategorised”. Could that be something more helpful, like “Mastodon”, “toot”, “status”, “import”, “imported post” or something?
Forum: Plugins
In reply to: [ActivityPub] Import Mastodon (Beta)Reporting back on a test import:
I created a new Masto account on a new server, and made four posts:
1. First post, just some text.
2. Another, text plus hash tags.ย #offgridpodย #volleyclub
3. Third, text, with a pic with alt text and a hash tag.ย #offgridpod
4. Fourth, text, with a short mp4 video file(x264/aac), with alt text, and a hash tag.ย #kendama
Downloaded the Masto archive of the 4 posts, and ran the import. All nice and easy, and 1, 2 & 3 all went fine, creating title-less “status” posts. #4 Created a post, but didn’t have the video file attached – as expected with the beta description.
Ah, just noticed that the image was imported into my WP Media library (as expected), and the mp4 file has been too! So it was imported, but just not embedded into the post. I guess this is something you already know.
The alt text from the video has been imported into the WP Media file’s Title and Description fields. The alt text from the image has been imported into the WP Media file’s Title and Description fields, but *not* into the WP Media file’s Alt Text field. However, looking at Page Source, I can see that the image embedded into the post *does* have the Alt Text.
The statuses were tagged with WP-native tags that match the ones in the content (good!), but the hash tags in the body of the post link to a tag search on the original Masto host. I guess that makes sense, since it’s just replicating the original Masto posts’ href links around the tags. Although in my case, the archive I actually want to back up is from a dead server, so those will be dead links. Okay, I guess that’s my problem, not yours. ๐
I had a minor panic that the date stamps of the posts were wrong, as they all appeared at the top of my WP feed. Then I realised that’s because they were brand new Masto posts, all newer than any other posts on my WP, so that was correct. My WP server is on UK (current summer) time, but the post time stamps were an hour behind (the Masto server must be on UTC), so that confirms that the imported time stamps *do* match the times of original toot creation. Cool!
The post urls are of the form [baseurl]/1234-3 , which isn’t especially helpful, but no less so than Mastodon status urls of 123456789012345 , I suppose. *shrug*
My next hoop to jump through, after there’s video support, will be the Import function’s file size limit of 512MB, as my archive file is just over, at 540MB. I reckon I’ll probably be ably to do something similar to what I did via Posty to get around that.
So, all looking good, thanks!Forum: Plugins
In reply to: [ActivityPub] Import Mastodon (Beta)That’s all really helpful info. ๐ I’ll report back when I get around to trying it. Good idea about a test account. But the account I want to import has quite a few video posts, so I guess I’ll have to wait a while before I can import that (fully, at least).
Thanks very much!Forum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected oneThat sounds like the perfect solution for me, thanks!
If you need to DM me… https://moth.social/@TheVoidTLMBForum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected oneHere 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 BuilderForum: Plugins
In reply to: [ActivityPub] Media attachment is not the expected one“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.