#wordpress 2024-03-12

2024-03-12 UTC
[Paul_Robert_Ll] and mitchsucksatgame joined the channel
#
starrwulfe
Hey!! I figured it out GWG!
#
starrwulfe
The micropub is using content from the excerpt to fill in the syndication. If you don’t have anything in there you get just a bare link. If you have content in there, it gets cross posted.
#
GWG
Actually, I checked it. The excerpt is always used if set. The problem is it isn't excerpting properly if not set.
#
GWG
I looked at the logic earlier.
#
GWG
I'm just waiting to go to New Jersey right now
#
starrwulfe
I was toying around at letting an AI experiment make the excerpt and saw this happen just now.
#
starrwulfe
Then it hit me— I stopped automatically making excerpts a few weeks ago and this started happening.
#
GWG
That's why I didn't notice the error. It combines a few different factors.
#
GWG
I'll get something out. Maybe in the hotel when I get there
to2ds, mitchsucksatgame, gRegor, angelo, [Joe_Crawford], [lcs], [Murray], gRegorLove_, Guest6, Osogrup, [capjamesg], [qubyte], lazcorp, [tantek] and [aciccarello] joined the channel
#
GWG
Did I fix the Bluesky problem?
[snarfed] joined the channel
#
[snarfed]
I dunno, did you?
#
[snarfed]
did you test?
#
GWG
The first one went horribly. I added stripping some tags
#
GWG
It seems inline svg was an issue
#
[snarfed]
you probably don't want any HTML tags at all, right? ie more than just strip a few?
#
GWG
[snarfed]: I ran it through the default WordPress excerpt generator for now. Which defaults to 55 words. I need to figure out a better excerpt generation
#
GWG
[snarfed]: Since you deal with a lot of varying length content... what logic if any do you use? Or just a straight character count?
#
[snarfed]
I don't know that I generate excerpts in the same way you need to
#
[snarfed]
when I have to ellipsize/truncate for silos with limited char counts, I just use their limits
angelo_ joined the channel
#
GWG
I will try to write something
[schmarty] joined the channel
#
GWG
Version 4.4.19 seems to be a winner.
#
Loqi
[preview] [David Shanske] After all this work I’m doing today to get Bluesky syndication working…I hope someone replies on Bluesky. https://david.shanske.com/2024/03/12/7607/
#
[snarfed]
GWG++ nice!
#
Loqi
GWG has 24 karma in this channel over the last year (48 in all channels)
#
GWG
Custom excerpt function
#
[snarfed]
sigh, the unlinked URL there is really awkward. PRs are welcome for https://github.com/snarfed/bridgy/issues/1661 / https://github.com/snarfed/granary/issues/675 !
#
Loqi
[preview] [snarfed] #1661 Bluesky publish: support @-mentions, hashtags, links
#
GWG
Calculates the maximum character count for the service, renders content the way wp_trim_excerpt does, then strips it, breaking at the word, less the length of the URL.
#
GWG
If the URL is to be included.
[Tilley], [KevinMarks], [nsmsn], mitchsucksatgame and [Ros] joined the channel