Skip to main content

HT Someone in my follows (which I can't find now, but awesome, thanks): curl -s wttr.in/Moscow

Why the hell did we bother with all those hundreds tens and units crap at school when the Japanese multiplication method is just *so much easier*?

Fixed the @withknown Vagrant build and moved it out of core into its own repo: https://github.com/mapkyca/known-vagrant ... tidy, and more flexible.

Ahh, that worked. @withknown now supports the new 280 char length in tweets, update your twitter plugin and restart your async queue service if you run that...

Ahh... ok... maybe this will work. Going to ramble on a little bit more, as I think I may have worked out where that character limit was being applied... If so, I'll have to do some documentation updates... lets see how this goes...

Urgh, that's irritating. Looks like there's another limit being applied somewhere... so much for a two second fix. Ahh well, another day...

So, there's nothing really to see here. I'm just going to ramble on a bit, because I want to have a really really long tweet in order to test twitter's new 280 character length tweets cross posted from my @withknown account. Lets see how this goes...

Replied to a post on github.com :

Since I wrote the URL unfurling in Known, I thought I'd go in to a little more detail on how it works:

* When a post is displayed, a bit of javascript looks in the content for the first URL.
* This URL is passed to an endpoint, where
* If it's already been seen the unfurled content is returned
* Otherwise the page is retrieved
* If no error, we extract open graph, twitter, facebook meta tags, OEmbed endpoints, MF2 tags and basic title and description
* This is then saved.

Rendering, this content is used and a card is generated using the following:

* If OEmbed is present and is whitelisted we use that (you don't want to allow oembed for everything, and also OEmbed is far from standardised in the wild, so you need to do some shimming)
* If no OEmbed, we use open graph
* If no Open Graph, we use title and description

Twitter, Facebook tags and MF2 are not currently used, but are there for future coolness.

Images in Known are also proxied and cached locally for speed and privacy, this proxy also has the ability to transform and resize images. This might be an approach you may want to look at as well, since I found it very useful.

HTH :)

@benwerd School is house training to break children and make them useful for capitalism. I see no contradiction here..