#dev 2018-08-03

2018-08-03 UTC
snarfed, eli_oat, renem, jg, [xavierroy] and [tantek] joined the channel
#
boffosocko.com
edited /The_Deck (+18) "see also: advertising"
(view diff)
#
oodani
is it legal for a micropub media endpoint to modify the file it receives before storing it, such as converting it to a different format? in particular, i'm pondering uploading .bmp files from a 3ds, which is incapable of converting to .png - would it be acceptable for the media endpoint to perform the conversion to .png instead?
#
oodani
the spec does say that the server is permitted to ignore the provided filename, but not whether it's allowed to ignore/change/whatever the provided file type
tantek__, cweiske, Ben6422, ski777715, ecx86, u1dzer029 and PlasmaStar6 joined the channel
#
Zegnat
oodani, my personal feeling is that the media server should not convert things. What if I am uploading a .bmp file to use as an example in a blogpost about the 3DS? But it is an interesting usecase for sure. mmmmm
[kevinmarks] joined the channel
#
[kevinmarks]
Scaling images is another case - you often want a thumbnail and full size, or other variants tuned to layout
#
Ruxton
Wordpress scales them but the original is always available
jeremycherfas and [grantcodes] joined the channel
#
[grantcodes]
I think converting formats would be fine, if it's an image and you return a url to an image file that will work in a src attribute, that shouldn't really cause issues.
#
[grantcodes]
Video to gif would be cool, but then it wouldn't work in an img tag, so not such a good idea 😛
#
[grantcodes]
My endpoint resizes images but still returns the full image by default.
#
Ruxton
You have to consider the use case where you're "attaching media" though, that you don't want to convert
#
Ruxton
like what Zegnat described
#
Zegnat
According to RFC 7231 it is perfectly valid to return a 201 Created status even if you have created multiple files (say: a bmp and png). The Location header should link to the “primary resource”, which I would say is the file the user was uploading (the bmp), but you are allowed to point at alternates (the png) in the same response.
#
Zegnat
For 300 Multiple Choices the RFC mentions using Link headers (with rel alternate) to point at other options. I see no reason you couldn’t do that for 201 responses too. Link headers can contain media types (e.g. image/png). It will then be up to the uploading application to see if it would rather use an available rel-alternate or the actual file it uploaded.
#
Zegnat
You could, maybe, even extend the Link header to include the `sizes` parameter (as seen in the HTML standard) if you want the server to tell the client it has already generated some thumbnails.
#
Zegnat
should probably put this in a spec issue for further discussion
jgmac1106 and [jgmac1106] joined the channel
#
@alphaquad
Webmentions: Enabling Better Communication on the Internet Breaking down the walls between the internet?s many social silos, Webmentions offer a new level of freedom for web interactions. https://alistapart.com/article/webmentions-enabling-better-communication-on-the-internet
(twitter.com/_/status/1025320463898234880)
[kevinmarks] joined the channel
#
[kevinmarks]
How would sizes work there? You rewrite the img link in the content to include a srcset?
#
petermolnar
I have a confession to make... I ditched server side syntax highlighting and went back to prism.js. The output of codehilite is sooooo verbose it boosted my pages with +60KB of text
#
Zegnat
Or you can just pick the one that makes sense. The actual Micropub client is going to know best what the purpose of its current post is, [kevinmarks]
#
Zegnat
Written up a proposal for allowing Link headers, and included the basis I think it has in HTTP spec. Given the BMP&PNG example as well as the multiple image sizes example. https://github.com/w3c/Micropub/issues/113
#
Loqi
[Zegnat] #113 Allow media endpoint to return alternative / automatically generated files
#
GWG
I like your proposal for the media endpoint
#
oodani
i like it too! c:
#
GWG
My endpoint already generates different sizes
#
Zegnat
Thanks! :) I think it is an interesting idea for sure.
#
Zegnat
GWG if your (WordPress?) endpoint already does the size generating, maybe comment and throw in an intent-to-implement?
#
GWG
Zegnat: It does solely because WordPress does that automatically anyway
#
Zegnat
Do you know the URLs for those generated images? That is, could you put them in the media endpoint response?
[Vanessa] joined the channel
#
jgmac1106
well I got webmention endpoints, webmention discovery, and sinatra gems installed…think that is as far as I am going to make it today, still no app or views yet, but atleast all my gems in place…need a static site gem…
#
GWG
Zegnat: The system knows it, yes
#
GWG
Zegnat: And I do, sort of.
#
jgmac1106
okay giving up for the day, trying to get my local dev environment going and ruby tells me my OpenSSL cert is out of date but everytime I run brew install openssl I am told I am up to date…I am both out of and up to date….that means kit kat break
[grantcodes] joined the channel
#
[grantcodes]
!tell schmarty Being the only other user of the PostrChild extension that I know of, let me know if you get the new version and it still works for you 🙂
#
Loqi
Ok, I'll tell them that when I see them next
raretrack, eli_oat and ckeltz9 joined the channel
#
schmarty
grantcodes: I ended up uninstalling it because the injected HTML was interfering with Patreon pages, crashing their react 😂
#
Loqi
schmarty: [grantcodes] left you a message 57 minutes ago: Being the only other user of the PostrChild extension that I know of, let me know if you get the new version and it still works for you 🙂
tantek__ and [Khurt_Williams] joined the channel
#
tantek.com
edited /photo_reply (+190) "examples + aaronpk"
(view diff)
#
tantek.com
edited /meme (+405) "dfn, photo / photo reply, indieweb examples, aaronpk 😂"
(view diff)
#
tantek.com
edited /MediaWiki:Sidebar (-10) "IWC NYC!"
(view diff)
[grantcodes] joined the channel
#
[grantcodes]
schmarty: Haha oops. I think that should be fixed now anyway
[jgmac1106] joined the channel
#
schmarty
grantcodes: nice! I’ll check it out again. One big thing I want to figure out is editing content in markdown, since I store it that way.
[pfefferle] and arza23 joined the channel
#
[grantcodes]
Hmm, yeah that might be difficult. If your micropub endpoint returns markdown from the source query it would get loaded into the editor, but the update request would wrap it with a `p` tag at minimum just now
#
[grantcodes]
Or you could do html > markdown on an update request? That editor won't add anything too complicated at the moment
eli_oat1, jackjamieson, snarfed, jgmac1106, [xavierroy], [dougbeal], [generativist] and raretrack joined the channel
#
@MIGHTYminnow
“Webmentions help to break down some of the artificial walls being built within the internet and so help create a more open and decentralized web. ” https://buff.ly/2NtLGgp
(twitter.com/_/status/1025415517077684224)
[dougbeal], tantek__, jgmac1106, jackjamieson, [jgmac1106], eli_oat, [chrisaldrich], [cleverdevil], [Khurt_Williams] and chrisaldrich joined the channel
#
boffosocko.com
edited /RSS (+77) "/* WordPress */ feed structure for searching for post kind and tag/category"
(view diff)
[jgmac1106] and tantek__ joined the channel
#
loqi.me
created /Oh_snap (+110) "prompted by tantek__ and dfn added by [jgmac1106]"
(view diff)
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
[google] data-transfer-project: The Data Transfer Project makes it easy for people to transfer their data between online service providers. We are establishing a common framework, including data models and protocols, to enable direct transfer of data both into and out of participating online service providers.
#
tantek__
looks like it's all based on OAuth
#
tantek__
and a big opportunity for Bridgy to participate IMO, as importer and exporter on behalf of the user - or perhaps a different Bridgy-like service
#
sknebel
assuming they'll let random entities play
#
tantek__
that's the claim
#
sknebel
that sounds good, what I had read before sounded more like limited interaction between blessed companies
#
[cleverdevil]
Its now been two weeks since I opened an issue with Apple which is preventing me from releasing Indiepaper for iOS.
#
[cleverdevil]
Still nothing.
#
tantek__
just asked about "delta transfers"
#
gregorlove.com
edited /POSSE (+397) "/* Articles */ + benwerd's Stepping back from POSSE"
(view diff)
jgmac1106 and [pfefferle] joined the channel
#
tantek__
!tell snarfed any way to tell how many Twitter accounts has Bridgy publish published to? Has Bridgy backfeed backfed from?
#
Loqi
Ok, I'll tell them that when I see them next
leg joined the channel
#
dougbeal
Putting img alt-text into twitter seems like it would force you to leave it blank
#
Zegnat
It is not so much that images are being syndicated to Twitter. But if you put an image inside a post’s content, the plain text parsing of microformats2 will replace it with its alt text.
#
jgmac1106
okay that makes sense
#
Zegnat
Trying to keep the content complete in its plain text version. E.g. if you are including an image in a comment but the receiving site only displays plain text comments it might make more sense to show the proper alt value than to leave out part of your comment.
#
Zegnat
But there is ongoing debate about this.
#
dougbeal
yeah... I wonder if bridy included the picture, or is it a preview of my link
#
@murderofcrows
Homebrew Website Club Logo by Malcolm Blaney Homebrew Website Club - Seattle Area - August 8th at Wayward Coffee House (https://crw.moe/b/c7) https://pbs.twimg.com/media/Djsw3aTU4AA310Q.png
(twitter.com/_/status/1025467072061435904)
#
sknebel
that's an uploaded image
#
Zegnat
In the case of this specific post, the image might have made sense as a featured image (https://indieweb.org/featured). This could be placed outside of the post content, and a service like Bridgy will still use it: https://indieweb.org/featured#Bridgy
#
sknebel
it is a featured image
#
sknebel
but also in the bridgy-content propert
#
sknebel
Zegnat: use the source ,it's not the svg at the top
#
sknebel
<a href="https://www.brid.gy/publish/twitter"></a><p class="p-bridgy-twitter-content" style="display:none"><meta property="og:image" name="twitter:image" content="https://dougbeal.com/wp-content/uploads/2018/07/hwc_558x558.png" /><img class="u-featured alignleft" src="https://dougbeal.com/wp-content/uploads/2018/07/hwc_558x558.png" alt="Homebrew Website Club Logo by Malcolm Blaney" />Homebrew Website Club - Seattle Area - August 8th
#
sknebel
at Wayward Coffee House</p>
#
dougbeal
I had the .svg version as the featured image originally, but that can't go to twitter
#
sknebel
so did you add the image to a bridgy-publish specific setting, or what did happen?
#
Zegnat
Oh, woops, I wasn’t looking at p-bridgy-twitter-content. This is what happens when you have hidden data instead of your HTML :P
#
dougbeal
blame twitter ;)
#
Zegnat
Still, I think the solution is to move the images outside of the content property if you do not think they are supposed to show as inline-content.
#
sknebel
yes, question is if dougbeal did that manually or if that's something a plugin has to fi
#
Zegnat
You can probably move the <img class="u-featured"> to outside of the p-bridgy-twitter-content div and just give it a style="display:none;". I expect Bridgy will pick it up as the featured image of the URL, no need for it to be nested as it is.
#
dougbeal
I added an exerpt when it reject the PNG
#
dougbeal
err, SVG
[jgmac1106] joined the channel
#
sknebel
and the image in the excerpt? then I think the answer for now is have the image with alt="", or use some other way to get u-featured on the image
#
dougbeal
Yeah, or up my alt-text game so it makes sense inline
#
Zegnat
Could you use a picture element for the SVG and put the IMG to the PNG in there as fallback? Then you could add the featured class to the nested IMG for mf2 parsers to pick up on. Then you may be able to get rid of the special Twitter excerpt entirely?
#
Zegnat
Although you’d still need to move it out of the .content block if you don’t want any alt to be part of the content ...
#
dougbeal
Zegnat: that does sound ideal, I wonder how bridgy would do with it
#
Zegnat
Bridgy runs an mf2 parser. That shouldn’t have any issue finding the img.u-featured no matter where you put it. The trick is just to not give it an alt *and* put it inside .e-content if you do not want the alt as part of the page content :)
[kevinmarks], leg and tantek__ joined the channel
#
[kevinmarks]
You could use object for your svg and have a ping fallback for twitter https://css-tricks.com/a-complete-guide-to-svg-fallbacks/
#
boffosocko.com
created /Camel (+584) "stub for project"
(view diff)
[cleverdevil], tantek__ and heinrich599111 joined the channel
#
heinrich599111
This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
#
Loqi
Welcome, heinrich599111. We've had an influx of IRC spam recently, and you were not yet recognized as a non-spammer. Your previous message wasn't sent to the channel, but I'm repeating it below so everyone can see it. You are now marked as verified, so your future messages will be sent as normal.
#
Loqi
heinrich599111: This channel has been hacked by Australia's #1 hacker Simon 'eVestigator' Smith https://evestigatorsucks.com/
tantek, pk1221, e20, bradenslen, emilsp21 and [chrisaldrich] joined the channel