Open alecmuffett opened 1 year ago
This is a known issue, see #136.
Noted, and I saw that, but I also failed to get new content which was added after subscription.
In short: no content at all.
Is there a feed-debugging switch, perhaps?
There is a "show log output" link below the feed list, what does it say for you?
To retry a follow, you can remove the "Active" checkbox and click save (this will send an undo follow request). And then re-activate the feed and save it.
With #163 the "Preview" link now should work.
(If you check the screenshot above, I received a 401 here but I followed the user a couple of times when implementing #163 which might be why)
When I tried just now, using the plugin from the Wordpress repo, it found 0 new posts.
I've just installed the main branch from here, and suddenly it finds 20 posts, which I presume is the backfill.
I will also update my other feeds, and see if they pick up new posts going forwards.
@akirk
An error of type E_PARSE was caused in line 99 of the file /..../wp-content/plugins/friends/templates/admin/settings.php. Error message: syntax error, unexpected ')'
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Sorry about that, this was PHP8 syntax. Fixed in 2896c3d
This will now be caught via Github Actions, see https://github.com/akirk/friends/actions/runs/3837596872/jobs/6533083125
You can log the actual HTTP requests but it's a bit of a challenge: Using the Code Snippets plugin, you can use this snippet to log them (possibly using the WP_DEBUG_LOG
constant to log into a dedicated file)..
I am using the Friends 2.2.0 plugin with WordPress 6.1.1 on PHP 7.4.33 and having a similar problem. I do get log output on a feed's page saying posts were found, e.g.:
2023-01-07 03:52:46: Found 1 new post. Will be fetched again at 2024-01-07 02:36:11.
And on the same Feeds page, it says "View 29 posts'; however, the Friends page says, "Unfortunately, we could not find a post." even though directly above it says, "29 statuses".
This happens with ActivityPub subscriptions from Mastodon and Akkoma servers, Atom and RSS feeds, and a Microformats subscription.
Could it be that the account has only posted @-replies to people you don't follow?
Because of this setting, those won't be shown:
Do you see "hidden items" in the header of that page?
Could it be that the account has only posted @-replies to people you don't follow?
No, I specifically have that checked for this account.
Do you see "hidden items" in the header of that page?
I do not. Here is the header along with the indication of no posts:
Hm, I see. This is strange. Are the posts visible elsewhere? i.e. on /friends/
or /friends/type/status/
?
Could you install the "Friends Debugger" via plugins? You'll then get an "View cached posts" link like this:
You'll then arrive on this page where you need to change the "All formats" to "status":
Can you then see the posts in that view?
Hm, I see. This is strange. Are the posts visible elsewhere? i.e. on
/friends/
Nope:
or
/friends/type/status/
?
For some reason, only my local blog posts are visible there, along with a stray block inserter:
Could you install the "Friends Debugger" via plugins? You'll then get an "View cached posts" link like this:
After installing the Friends Debugger, selecting "View x posts" on any of my friend detail pages, whether on the main Edit User page or the Edit Feeds page, yields a 404 error page. I do not get the opportunity to change post format from "All formats" to "status".
I do see lots of posts when I go to the new "Cached Friends Posts" item that appeared in my admin sidebar when I installed Friends Debugger, though (/wp-admin/edit.php?post_type=friend_post_cache
)
For some reason, only my local blog posts are visible there, along with a stray block inserter:
Oh no, this is not a stray inserter but the Status page is supposed to be a status feed that also contains your own posts and a post window for directly posting to your status page. So for some reason, the posts of the custom post type "Cached Friend Posts" are not shown which is why only your posts do appear.
I am wondering if this is an interaction with another plugin. Could you go into Troubleshoot mode on the Plugins page by clicking on Troubleshoot on the Friends entry:
Then you arrive on a screen like this:
In a new tab, please check the /friends/type/status
page if now other posts are shown. If yes, then another plugin is likely interacting.
On the right hand side of the troubleshoot screen you can one-by-one activate more plugins so that ideally you can see when it starts to break.
I am wondering if this is an interaction with another plugin. Could you go into Troubleshoot mode on the Plugins page by clicking on Troubleshoot on the Friends entry:
Then you arrive on a screen like this:
In a new tab, please check the
/friends/type/status
page if now other posts are shown. If yes, then another plugin is likely interacting.
Found the culprit: @dshanske's IndieWeb Post Kinds plugin, repo @ https://github.com/dshanske/indieweb-post-kinds.
What's strange is that @mikewmerritt says in https://github.com/akirk/friends/issues/144#issuecomment-1370351451 that he's using the same plugin.
Thank you, I'll investigate. Maybe it's a specific setting?
Maybe it's a specific setting?
I'll start tweaking and let you know if I find anything.
What's strange is that @mikewmerritt says in #144 (comment) that he's using the same plugin.
I do have the plugin installed but am having this same issue. I'll try doing the same troubleshooting and see if I get similar results.
I am now getting the "Unfortunately, we could not find a post" error too, in peculiar circumstances.
I follow https://mastodon.neilzone.co.uk/@neil
He posted https://mastodon.neilzone.co.uk/@neil/109655903284097321
This arrived in my feed as a (hidden) post, immediately after he boosted something else I'd written:
If I click on 3 hours ago
it takes me to https://alecmuffett.com/friends/mastodon.neilzone.co.uk-neil/17224/
which says Unfortunately, we could not find a post.
Then I click on 331 hidden items
(in this case, just one hidden item) and - without a header/banner/heading - I see:
...pop up into place; the URL in this instance is https://alecmuffett.com/friends/mastodon.neilzone.co.uk-neil/17224/?show-hidden=1
- note 17224
Interestingly: if I go click on View 101 cached posts
for Neil, there is no sign of post number 17224.
So I suspect the SQL queries used to retrieve hidden posts, are being excessively effective.
Whilst I am here and have your attention, please, @akirk — what is the proper way for me to reply to Neil's welcome? I cannot work out what I am meant to do to reply to it.
Aha! I found it! For some reason posting number 17224
is literally in the Bin
!
Is this how you are trying to do autodelete?
I’ve also been messing with the Friends and ActivityPub plugins for WordPress on this blog, and I share Shelley’s concerns about the former bloating the database with feed items. You can control this somewhat by setting retention values in days or a number of posts, but you have to go into each friend’s Feeds tab and do it manually – there’s no default setting.
After reading that post, I’m also considering disabling Friends in favor of a feed reader, especially because (as Shelley also noted) there are gaps when with favorites and comment conversations bridging between WordPress and Mastodon servers. Like her, I’m not keen on installing a single-user Mastodon instance or other fediverse server that requires managing an unfamiliar programming language.
I’m also trying to do this in tandem with a suite of IndieWeb plugins, and I’m running into an issue with my friends feed page not showing any posts when the Post Kinds plugin is activated. I really want to keep this plugin because it lets me interact better with other IndieWeb sites as well as the Bridgy POSSE/backfeed service connecting me to other social networks.
My ideal is a personal website where I write everything , including long-form articles, short statuses, and replies like these. Folks can then find me via a single identifiable address and then subscribe/follow the entire firehose of content or choose subsets according to post types, topics, or tags. They’d then be able to reply or react on my site or their favored platform, which my site would collect regardless of origin, with subsequent replies and reactions getting pushed out to them. Oh, and it should work with both ActivityPub clients and servers, IndieWeb sites, and syndicate/backfeed to other social networks either with or akin to the Bridgy service I mentioned above.
So far I haven’t seen anything that ticks all these boxes, and I’m getting itchy to write my own. Perl is my favorite programming language, so I’m looking at the Yancy CMS as a base. But I know that it would still be a hell of a project, and one of the reasons I chose WordPress for blogging was that it was well-established and ‑supported but still easily extensible so that I could concentrate on writing instead of endlessly tweaking the engine. Unfortunately, I’m starting to fall into that trap anyway. [POSSE]: Publish (on your) Own Site, Syndicate Elsewhere [CMS]: content management system
(Originally published at: https://phoenixtrap.com/2023/01/08/re-wordpress-friends-activitypub-indieweb/)
@mjgardner my take is far more relaxed than that; even a feed reader needs to retrieve copies of all of the remote content - and then it stores it in some kind of repository - so (unless you particularly worried about the integer post count being roughly correlated with the amount of postings you make on your WP blog) why not store and garbage collect them in WordPress?
Edit: that being said, I too would like to see a few more global settings...
@mjgardner thank you for the perspective and also linking to @shelleyp's post. I am thankful for further perspectives of what is expected from such a plugin like Friends and for understanding what people dislike about it.
I agree that the experience with ActivityPub and the Friends plugin (as I also commented here) is not perfect yet as quite a number of things are still missing (some of which are being worked on, like #168) or are not (yet) great from a UI perspective. Not an excuse but an explanation is that ActivityPub is mostly a surprisingly great fit for what the Friends plugin was designed for: connecting blogs/WordPresses (mostly through RSS).
As @alecmuffett said, the incoming posts need to be stored somewhere. The size limiter is currently only exposed for single feeds because I personally value to have the old posts of my friends and subscriptions available for search or reference.
I personally even use a plugin to the Friends plugin called Friends Post Collection that allows me to store posts and articles from the web into additional local friend users. I can then edit/reformat the posts before I send them to my e-reader with yet another plugin. The search function of WordPress lets me search those posts for things that I had read. In future I can probably tag those posts for better retrieval (similar to thinkery).
So, I understand this is a different approach in philosophy. I think the space used for text is small in comparison of the value it brings to keep the text around. If I found something interesting and goes offline, I still have it for my reference unless I decide that it should be automatically moved to trash (through rules) or deleted after a defined amount of time.
There is room for extending the Friends plugin in ways that manage the data differently (for example we had another discussion about using WordPress users for friends/subscriptions in #120) but so far the approach has worked well for me.
Oh, I agree that the content has to go somewhere, which is why I’m sure to set retention levels for almost all of the Friends data. That sort of thing is settable by default in feed readers and podcast players.
(Originally published at: https://phoenixtrap.com/2023/01/09/wordpress-friends-retention/)
The Post Kinds interference is addressed in #176 and #177 introduces a global retention setting.
Example:
/wp-admin/admin.php?page=add-friend
and put@runasand@mastodon.social
into the Site URL, and hitNext
Preview
and I see:...and this/similar happens for ALL activitypub feeds which I try to follow, even if they make several updates after the subscription time.
I added an RSS feed to one of the attempted mastodon users, and that worked okay (at least: after an "explicit refresh") so I know that feed retrieval in general is working; just not Mastodon.
I have a WP 6.1 instance on an older PHP which is soon due for a refresh/rebuild, but even so I am not aware of why this might be happening, especially since RSS feeds are working.
Is there any debugging that I can squeeze out of this, please?