#wordpress 2023-01-17

2023-01-17 UTC
starrwulfe, RasAlGhoul and [Tim_Nolte] joined the channel
#
[Tim_Nolte]
[pfefferle] do you think that if the ActivityPub plugin could add support for posts to render JSON based on a query parameter such as `?format=application/activity+json` then we could leverage that for these caching situation with a rewrite rule using something like `RewriteCond %{HTTP_ACCEPT} "application/activity+json"`?
starrwulfe joined the channel
#
[Tim_Nolte]
I'm not finding anything within the VHost or server-wider configuration in the OpenLiteSpeed server that can separate out the caching by `HTTP_ACCEPT` formats. So I'm trying to thinking of a way to leverage perhaps query parameter caching to get something like that working.
RasAlGhoul_ and starrwulfe joined the channel
#
GWG
[Tim_Nolte]: Do other ActivityPub services actually support that?
#
[Tim_Nolte]
I'm not clear on what you mean whether other ActivityPub services support it? If they make a request and I rewrite it on the server and they get the correct response does that make a difference?
starrwulfe joined the channel
#
GWG
So, you are saying you rewrite an HTTP_ACCEPT header to a query param? Does that work?
#
GWG
It sounds like it would, I've just never tried that.
starrwulfe joined the channel
#
GWG
[snarfed]: https://github.com/dshanske/syndication-links/issues/174 I'm adding a single setting that will swap between the two
#
Loqi
[preview] [snarfed] #174 Drop webmention vs micropub options
RasAlGhoul_ and starrwulfe joined the channel
#
[snarfed]
GWG++ ...but really you should consider choosing one and removing the user-visible option altogether
#
Loqi
GWG has 10 karma in this channel over the last year (61 in all channels)
#
[snarfed]
Users still won't know why to choose one or the other
#
[snarfed]
And they shouldn't really have to
#
GWG
I agree, but I want to keep the functionality for debugging purposes. I'll see what I can do to tweak it.
[timothy_chambe] and starrwulfe joined the channel
#
[snarfed]
Maybe use a debug constant or something similar to trigger it then, ie not something with visible UI
#
GWG
I'm putting it behind the WP_DEBUG option.
#
[snarfed]
And not in UI? Awesome!
starrwulfe joined the channel
#
GWG
[snarfed]: No, the WP_DEBUG option being enabled will show the option in the UI, but otherwise it won't.
#
[snarfed]
Ahh got it. Sounds great!
gRegor and gRegorLove_ joined the channel
#
GWG
Okay, added a path for additional logic to disable the checkbox if the token field is empty.. I'm not sure how to validate the token
#
[pfefferle]
[Tim_Nolte] I have no idea if that works but maybe give it a try. There is already a possibility to show the json by adding „/activitypub“ behind every author, post or page URL. For example https://notiz.blog/2022/11/14/the-at-protocol/activitypub/ Maybe you can redirect to this page!
#
Loqi
[preview] Vor zwei Jahren wollte Twitter in das „Dezentrale Netzwerke“-Business einsteigen und gründete eigens dafür das Projekt Bluesky. In den folgenden zwei Jahren wurde viel evaluiert und diskutiert, was wohl die beste Lösung für Twitter sei und wi...
jsbach, starrwulfe, Alec, Guest6, [schmarty] and [aciccarello] joined the channel
#
GWG
I need some thoughts on Syndication Links if anyone is using the current version
starrwulfe joined the channel
#
[Tim_Nolte]
[pfefferle] ah, perfect, I didn't realize that endpoint existed. That is exactly what I will try using!
#
[Tim_Nolte]
[pfefferle] ++
#
Loqi
[pfefferle] has 9 karma in this channel over the last year (17 in all channels)
starrwulfe and gRegor joined the channel
#
starrwulfe[m]
GWG: I think there should be an explanation of what does what a little bit better. I’m using a combination of micropub and webmention depending on the service thanks to [snarfed] helping me out earlier.
#
starrwulfe[m]
Twitter doesn’t like the content type coming from micropub option so webmentions for them. Everyone else gets a micropub option if they have it.
#
starrwulfe[m]
If there’s a way to pot tooltips or popovers to explain things a bit in the plugin instructions, it’d be welcome
#
GWG
starrwulfe[m]: [snarfed] encouraged me to not give people a choice.
#
GWG
starrwulfe[m]: What content type?
#
starrwulfe[m]
[pfefferle]: sometimes I’m getting that /activityweb screen without that suffix somehow. Was wondering what that was; now I know.
#
starrwulfe[m]
GWG: All of them. With the micropub setting for twitter I only ever get the link sent to Bridgy in the content field.
#
starrwulfe[m]
If there was a way to customize that a la the ActivityPub plugin…
#
GWG
starrwulfe[m]: Well, I want to improve the logic. Can you show me an example of a post that would end up going by the link?
#
[tw2113_Slack_]
oh no, Jason found me 😛
#
starrwulfe[m]
Unfortunately I deleted it earlier from my Twitter feed and reposted correctly but let me see if Bridgy still has it listed
#
starrwulfe[m]
[tw2113_Slack_]?? Me ??
#
[tw2113_Slack_]
Jason Tucker, just joined the channel a moment ago
#
[tw2113_Slack_]
i recognize him from the larger WP community
#
starrwulfe[m]
Oh! 🤣 yeah I’m “not so important Jason” lol
#
GWG
I might need to go back and forth with [snarfed] about how my logic can mesh with his logic.
#
[snarfed]
they don't necessarily need to mesh, you're welcome to choose exactly how you want Synd Links to POSSE to Twitter
#
[snarfed]
by using either Micropub or https://brid.gy/about#silo-content for webmention trigger. up to you!
#
starrwulfe[m]
Here you go, I kinda documented what happened in the tweet comment below it
#
starrwulfe[m]
And the link has some of what I was telling [pfefferle] with that strange AP JSON getting thrown back at us to boot
#
[snarfed]
^ GWG, Bridgy logs show that Synd Links sent "- https://starrwulfe.xyz/2088-2/" as the content property in that Micropub request
#
Loqi
[preview] [J L Gatewood] I’d better remember to make a top level "/feeds" page and stick it in the menu since folks are(should be)… gettin’ back to basics on the innanetz and RSS feeds are a better way to track most websites than relying on a social media site to do it...
#
GWG
Yes, was more looking for advice.
#
GWG
Especially if I'm hiding the alternative
#
[snarfed]
the default would be \
#
[snarfed]
er, sorry
#
[snarfed]
the default would be to match Bridgy's current behavior: "[title] - [link]" for articles, truncated content for notes
#
[snarfed]
does that post of starrwulfe's maybe have the title "-" somehow, which Synd Links interpreted as not empty?
starrwulfe joined the channel
#
starrwulfe[m]
I didn’t give a title so something’s inserting that dash
starrwulfe joined the channel
#
GWG
Sorry, had a bit of a crisis here.
#
GWG
Be back shortly.
starrwulfe joined the channel