Hi. Yes Ill try again today. I need to clarify some issues for reference, and in case any of this is relevant. Sorry for long reply.
Im not clear what you mean when you say
But because of the format BlueSky uses, I’m afraid the parser
because the sentence isnt complete.
- Its not Bluesky feeds that were breaking Twigfeeds beta 5.1 - I wasn’t running any BS feeds in the main tests (because they didnt work at all, in any Twigfeeds versions). Mastodon feeds, which also do not have the title element, work flawlessly in previous versions of Twigfeeds (4 & 5) and probably this version too, which is interesting. So, its unlikely the lack of title element stops BS feeds from working.
I believe it might be to do with the lack of xml header in the BS feed. If you compare the raw RSS 2.0 from BS and Mastodon - both of which lack the title element), you can see the different formatting and the additional header in the Mastodon code.
Header in the Mastodon RSS 2.0, plus additional RSS 2 attributes:
The Bluesky RSS2.0 without any header or any RSS 2 attributes.
- Both Bluesky and Mastodon run without problems when using basic php to fetch. I ran tests earlier this year with basic php SimpleXML, to test various feed types. This test page (not styled much) has the BS and Masto examples.
Example code showing Bluesky and Mastodon feed:
Bluesky
<div class="grid-item">
<h4>brian merchant</h4>
<ul class="fa-ul" style="--fa-li-margin: 5em;">
<?php
$rss_feed = simplexml_load_file("https://bsky.app/profile/bcmerchant.bsky.social/rss");
if (! empty($rss_feed)) {
$i = 0;
foreach ($rss_feed->channel->item as $feed_item) {
if ($i >= 5)
break;
?>
<!-- <li> <a class="feed-title-url" href="<?php //echo $feed_item->link; ?>" target="_blank"><?php //echo $feed_item->title; ?></a></li> -->
<li class="description"><span class="fa-li"><i class="fa-solid fa-plus"></i></span>
<a class="feed-desc-url" target="_blank" href="<?php echo $feed_item->link; ?>"><?php echo implode(' ', array_slice(explode(' ', $feed_item->description), 0, 14)) . "..."; ?></a></li>
<?php
$i ++;
}
}
?>
</ul>
</div>
Mastodon
<div class="grid-item">
<h4>paris marx</h4>
<ul class="fa-ul" style="--fa-li-margin: 5em;">
<?php
$rss_feed = simplexml_load_file("https://mastodon.online/@parismarx.rss");
if (! empty($rss_feed)) {
$i = 0;
foreach ($rss_feed->channel->item as $feed_item) {
if ($i >= 5)
break;
?>
<!-- <li> <a class="feed-title-url" href="<?php //echo $feed_item->link; ?>"><?php //echo $feed_item->title; ?></a></li> -->
<li class="description"><span class="fa-li"><i class="fa-solid fa-plus"></i></span>
<a class="feed-desc-url" target="_blank" href="<?php echo $feed_item->link; ?>"><?php echo implode(' ', array_slice(explode(' ', $feed_item->description), 0, 10)) . "..."; ?></a></li>
<?php
$i ++;
}
}
?>
</ul>
</div>
I also tested this basic code with usual feeds from blogs or websites and it works fine, but with the additional title element also being used.
- When I tested TF5.1 I used standard feeds, but in my working Grav app - so it did have the local user/config/plugins twigfeeds yaml file in place. Next test I’ll do it with all previous Twigfeeds files removed. I will test 5.2 over next few days. Along with BBC and NY Times I will test with a Grav feed from my own site (for reference, with full post text), another blog (substack maybe) and a mastodon and bluesky feed.
NB FetchRSS isnt great in my opinion. To check using another widely used web app Id recommend RSS.app, its much better, but only has a 7 day trial. FetchRSS cannot even capture the individual post links from Bluesky, so it’s very poor. The basic php SimpleXML does a great job at capturing all the detail, for both Mastodon and Bluesky.