#dev 2019-08-09

2019-08-09 UTC
jjuran, critical, jolvera, [Michael_Beckwit, IWSlackGateway, ffl^, [xavierroy], masmulyawan, TristanDiscord[m, krt^^ and cweiske joined the channel
#
aaronpk
I can *almost* post a video reply from my website on mobile
#
aaronpk
I guess technically I can but I had to go thru Instagram to do it
#
aaronpk
I added a video reply to my own thread, and syndicated it to twitter in my Twitter thread, entirely on mobile
#
aaronpk
it was not a pleasant experience but it worked
[Rose] joined the channel
#
[Rose]
I've got a whole series of MicroPub shortcuts pretty much done for iOS 13
#
[Rose]
Which allow things like uploading video to your media endpoint.
#
[Rose]
Assuming your media endpoint allows it!
KartikPrabhu joined the channel
#
aaronpk
Mine does but I don't have an interface to attach that to a post
#
[Rose]
That's what my series does. Posting via MicroPub allows you to upload media as part of it (running that Shortcut), and then formulates it into the right kind of post.
[Lewis_Cowles], [grantcodes], gxt and [xavierroy] joined the channel
#
Ruxton
waves :)
#
[grantcodes]
Yeah so my understanding is published date is supposed to be when something is `published` (or intended to be published) to your site and `created` is when it was started.
#
[grantcodes]
The main example is usually writing a draft one day and then publishing it another.
#
[grantcodes]
But I think that follows for ownyourtrakt
#
[xavierroy]
for context, i can check into a show on trakt when i start watching it... but i've completed watching it only when the episode is over
#
Ruxton
consider trakt as an "offline clent" it wrote the posts 1 year ago, I don't want to published them all to my blog like thye happened a year later
#
Ruxton
[xavierroy]: and your scrrobble time will be when it completed (checkin_time+show length)
#
Ruxton
also reading the spec, created is not mentioned anywhere
#
[xavierroy]
so the published time would be completed time and not the checkin time
#
Ruxton
[xavierroy]: yep and Trakt will treat it lke that the whle way through it's system
#
[xavierroy]
I checked in an episode last night. and i've got 2 entries for it now
#
Ruxton
in trakt or your micropub ?
#
[xavierroy]
one sec. let me check if it has become a watched again in Trakt
#
Ruxton
trakt marks it 'watching' and if you leave your page open whel you're watching, pretty sure you'll see two in the list as it completes
#
[xavierroy]
deleting both plays from trakt now
#
[xavierroy]
and relogging to check
#
[grantcodes]
At the moment ownyourtrakt will probably duplicate that because of the way the API works. I also never use check-ins so I don't see that in my history
#
[xavierroy]
just relogged the episode
#
[grantcodes]
But I'm going to change from the history API to the watched API which will help with duplicates
#
[grantcodes]
It will probably make another post for you xavierroy
#
Ruxton
nice, yu can also just filter the history API down, only add watched status stuff to your items when you push in
#
[xavierroy]
it just did
#
[xavierroy]
there seems t be some timezone issues
#
[grantcodes]
It tracks the last id and last time, and all history items have different IDs and times
#
[xavierroy]
i watched it last night at 11pm. the time in OYT is 2019-08-08T17:30:00.000Z
#
Ruxton
OYT returns UTC in API always
#
[xavierroy]
and the time in WP is 23:59
#
[grantcodes]
And yes, I've not really done anything with timezones so that is probably getting mangled
#
Ruxton
[xavierroy]: blg in the right timezone?
#
[grantcodes]
I parse the date on the oyt server though, so it probably goes wrong there
#
Ruxton
try keep it UTC and let the client worry about it
#
shokuninDiscord[
so what's a good micropub editor?
#
[xavierroy]
2019-08-08T16:40:00.000Z winds up as 23:59
#
shokuninDiscord[
something we could use in our app?
#
Ruxton
mine all line up (the micropub UTC date vs. the Trakt in timezone date)
#
Ruxton
im in +8 UTC
#
[xavierroy]
i'm in +530 UTC
#
[xavierroy]
i had a similar problem with Teacup... They get pushed to +5 UTC
#
[xavierroy]
timezones are hard
#
Ruxton
they're really not
#
Ruxton
only play wth UTC, let user set timezone for display/input. Only one place in the wrld that's an issue, Antartica. https://en.wikipedia.org/wiki/Time_in_Antarctica
#
[grantcodes]
If either of you are comfortable in JavaScript / node you're welcome to work on ownyourtrakt
#
Ruxton
do you have it on github somewhere or is it only on glitch?
#
[grantcodes]
shokunin: depends what you are looking for in a micropub editor
#
[grantcodes]
It's just on glitch for now
#
shokuninDiscord[
anything we can put in a react app and start writing and it spits out compliant stuff
callMeBaby joined the channel
#
[grantcodes]
I think my stuff is the only reusable react micropub components so far
#
Zegnat
I think so. I can’t immediately think of any react based micropub
#
[grantcodes]
Those are reusable form components that build valid mf2 properties, but you still need to publish them somehow.
#
Loqi
[grantcodes] micropub: A simple JavaScript micropub helper
#
[grantcodes]
I have seen one other micropub client built in react, but it was a standalone thing
#
shokuninDiscord[
does your editor use micropub?
#
[grantcodes]
Technically no. It just generates a JavaScript object that is compatible with micropub. How you use that is up to you
#
[grantcodes]
But I do use it in multiple micropub clients
dsrt^ joined the channel
#
shokuninDiscord[
oh interesting
#
shokuninDiscord[
how would your editor compare with Slate btw?
#
[grantcodes]
Slate is awesome. It's very different from that. Mine are more for the individual properties that are useful for micropub, and slate generates one rich content value
#
[grantcodes]
I think I have react-quill built into my editor components, but you could theoretically use slate instead but with slate you have to set up all the ui and html conversion yourself
#
[grantcodes]
My browser extension micropub client uses slate though so it's definitely possible
#
shokuninDiscord[
cool!
wngrDiscord[m], loicm and IWSlackGateway joined the channel
#
petermolnar
!tell aaronpk something is off: https://telegraph.p3k.io/webmention/13h0oWOqL7iKFRh4DI - target: "https://brid.gy/publish/flickr", summary: "No webmention or pingback endpoint were found at the target" - but it does have <link rel="webmention" href="https://brid.gy/publish/webmention">
#
Loqi
Ok, I'll tell them that when I see them next
jeremych_, [tantek], [grantcodes], [Rose], [xavierroy], [calumryan] and [KevinMarks] joined the channel
#
[KevinMarks]
@shokuninDiscord Quill has a medium-alike editor
[jgmac1106], loicm and eli_oat joined the channel
#
jeremycherfas
!tell zegnat If the people who create the stylesheet I want to use via
#
Loqi
Ok, I'll tell them that when I see them next
#
jeremycherfas
!tell zegnat If the people who create the stylesheet I want to use via CDN change the content of the stylesheet, then any hash I generate is going to fail, isn't it?
#
Loqi
Ok, I'll tell them that when I see them next
#
jeremycherfas
And that will stop my site from using that stylesheet.
#
jeremycherfas
That is why I thought it would have to be the source that generates the hash.
[grantcodes] joined the channel
#
[grantcodes]
Yes, but a lot of cdns provide specific versions that never change.
#
jeremycherfas
I guess I should take this up directly with Tailwind. I have seen those integrity hashes with, I think, font-awesome, which may be where I got that idea.
[Rose] joined the channel
#
[Rose]
From memory most CSS files offered through a CDN do this.
#
Loqi
[jadchaar] #612 Upcoming changes in version 0.15.0
#
jeremycherfas
Not this one. Not yet.
#
[Rose]
If I were looking for a standalone media endpoint, does anyone have a recommendation?
jjuran joined the channel
#
[Rose]
I only see two in the wiki πŸ™‚
#
[grantcodes]
I don't think there are that many reusable standalone media endpoints
[schmarty] joined the channel
#
[schmarty]
If you're okay running python on a vps /Spano is standalone and v generic
#
[Rose]
I saw it, I'm not very familiar with Python
#
[Rose]
I was actually thinking of doing something with Amazon S3
#
[grantcodes]
I think eddie and cleverdevil have at least looked into that
[eddie] joined the channel
#
[eddie]
Yeah, it's not good so far
#
[eddie]
What is Amazon s3?
#
Loqi
Amazon S3 is a file hosting service from Amazon https://indieweb.org/Amazon_S3
#
[eddie]
let me know if you find anything i missed [Rose] as that's something I would really love to accomplish
#
[Rose]
What did you do to try this?
#
[Rose]
I was thinking along the lines of my script would upload and my script would always live in one place.
#
[eddie]
gotcha
#
[eddie]
as long as your script is not on Lambda, you're all set
#
[Rose]
Yeah, I have a server, no need to go too Amazon crazy πŸ˜›
#
[eddie]
πŸ˜†
#
[eddie]
:thumbsup: I think you're fine then
#
[Rose]
It's just a case of if/when I run out of space on my server I want to be able to switch to hosting the images elsewhere
#
[eddie]
ohhh that makes sense
#
[eddie]
My goal was to remove my server's up/down time from my Micropub workflow
#
[Rose]
And probably migrate all my current images too, so if I change CMS (again) in the future then the images won't break
#
[Rose]
Though looking at it, I think it might be smarter to use Aaron's code, and just pay for more storage with my host.
#
[grantcodes]
If you're on wordpress just now there are a ton of plugins that can use s3 for the media library (which is more useful than a standalone media endpoint imo because you get image resizing and other niceness)
#
[Rose]
€3.48/month for 100GB of storage should keep me going for a while
#
[Rose]
Ooh, good point
#
[Rose]
And having just got my local instance of my site up and running again..!
#
[Rose]
> Media Cloud works by moving your images, media and other files from your WordPress server to online cloud storage such as Amazon S3, Google Cloud Storage, DigitalOcean Spaces and many others. You can then serve that media through a CDN like Amazon Cloud front, Cloudflare, Fastly and others.
#
[Rose]
Intriguing!
#
[grantcodes]
Not used it but I'd totally trust this one: https://deliciousbrains.com/wp-offload-media/
#
[Rose]
That's the most popular one, but they of course want money to migrate existing media - slightly annoying when I could do it myself.
#
[grantcodes]
time = money πŸ˜›
#
[Rose]
Indeed
#
[Rose]
But they support up to 2000 items for $69, so the first step is to figure out how many items I have
[jgmac1106], KartikPrabhu, shrysr, [Will_Monroe], [KevinMarks], krt^^, [tantek], ffl^, dsrt^ and Guest8644 joined the channel
#
GWG
Afternoon
[schmarty], astrojuanlu[m], sfroment[m], aaronpk[m], npfoss[m], Nebulous[m], discord[m], freethinkingaway, iiogama[m], sacha[m], card[m], manfred[m], andrewxhill[m], drbh[m], rittme[m], Romaric[m]1, ritewhose[m], sander[m], new0ne[m], tom85[m], romaric[m], Giyomu[m], macerbi[m]1, gnunicorn[m], Lolicon[m], Ja3ood[m], Keegen[m], Tianyi[m], gorhgorh[m]1, mikeal[m], Tianyi[m]1, RealSnazzy[m], mZ[m], enricomarino[m], vasa[m], rklaehn[m], prtfw[m], Senshi[m], maparent[m], gorhgorh[m]2, cesarosum[m], placer14[m], oed3[m], celso[m]1, celso[m], gozala[m], pierreboc[m], drshamoon[m], CantiTurtleCoin[, Mairkur[m], chris[m]1, aeddi[m], Rick[m], jenncloud[m], WidgetBotiocli1[, CryptoEmpress[m], AXEL-Lee[m], JeffMaherVegas[m, fozzie[m], msena3[m], M[AXEL]Darr[m], AXEL-Brian[m], eddy[m], johanherman[m]1, phynite[m], balupton[m], lyon[m], Expherience[m], hvergara[m], Clment[m], silent_Activist[, carsonfarmer[m], RockSteadyTRTL[m, AuHau[m], Akshay[m]1, Oxy[m], NatoBoram[m], Gorka[m], kanej[m], Lilz|BetaMe[m], JustMaier[m], johanherman[m], jimpick[m], AkshayDiscord[m], aphelionzDiscord, PermawebMatrixBr, AXEL-LeeDiscord[, SebDiscord[m], Valium[m], npfossDiscord[m], baluptonDiscord[, AuHauDiscord[m], sanderDiscord[m], HeishDiscord[m], dillonDiscord[m], brewskiDiscord[m, JordanKrageDisco, gorhgorhDiscord[, oed3Discord[m], CantiTurtleCoinD, RealityDiscord[m, LSJI07Discord[m], RickDiscord[m], GorkaDiscord[m], neilDiscord[m], swedneck[GMT1]Di, NatoBoramDiscord, dignifiedquireDi, MatrixBridgeDisc, postablesDiscord, manfredDiscord[m, msena3Discord[m], NebulousDiscord[, hazDiscord[m], wcharginDiscord[, dpinnerDiscord[m, aeddiDiscord[m], kanejDiscord[m], TH0RynDiscord[m], prcDiscord[m], PeevesDiscord[m], corylDiscord[m], rxninDiscord[m], eshohetDiscord[m, JayWelshDiscord[, realChainDiscord, ClmentDiscord[m], hyde__Discord[m], DiscordRSSDiscor, ritewhoseDiscord, pusherDiscord[m], Kenzo3Discord[m], fexra|TRTLDiscor, andrewxhillDisco, LeFDiscord[m], jamiedubsDiscord, sfromentDiscord[, BossMANDiscord[m, M5310Discord[m], catmanDiscord[m], cwchristerwDisco, RockSteadyTRTLDi, thatguyDiscord[m, Dazuck-3BoxDisco, RyonezCoruscareD, braditzDiscord[m, JerbsDiscord[m], JustMaierDiscord, M[AXEL]DarrDisco, AXEL-BrianDiscor, berDiscord[m], ValiumDiscord[m], carsonfarmerDisc, WidgetBotiocli1D, GiyomuDiscord[m], jgmDiscord[m], shokuninDiscord[, KubeWorshipperDi, DendiDiscord[m], cyluDiscord[m], tobowersDiscord[, M011000100111010, porshDiscord[m], JaoheahDiscord[m, snapDiscord[m], MairkurDiscord[m, OboDiscord[m], LokeLDiscord[m], RDeckardDiscord[, MichaelTenDiscor, farhad312Discord, alphapapaactualD, zakatonDiscord[m, doodlemaniaDisco, SirMemesALotDisc, TianyiDiscord[m], buztedDiscord[m], thomasDiscord[m], lamborghiniDisco, eddyDiscord[m], JohnnyMilkshakes, GuillaumeDiscord, Ja3oodDiscord[m], PhillmacDiscord[, vamsiDiscord[m], mZDiscord[m], abhi_Discord[m], drbhDiscord[m], demomo[m], gozalaDiscord[m], pbvieDiscord[m], RealSnazzyDiscor, rittmeDiscord[m], combrayDiscord[m, Microsoft_techni, foxcoolDiscord[m, sekiDiscord[m], alexmarcus[m], KubeDiscord[m], flower88Discord[, rozgoDiscord[m], denzukoDiscord[m, dqxDiscord[m], olizillaDiscord[, jwheelerDiscord[, new0neDiscord[m], dy5es41Discord[m, hubaDiscord[m], JeffMaherVegasDi, gnunicornDiscord, XierumengDiscord, mZDiscord[m]1, cameronbrown[m], vasaDiscord[m], tom85Discord[m], Dby0Discord[m], rklaehnDiscord[m, nlkoDiscord[m], cristobalDiscord, truthDiscord[m], planetary_devDis, chmanieDiscord[m, KYZITEMELOS93Dis, EugeneDiscord[m], lyonDiscord[m], zegordoDiscord[m, sbpDiscord[m], johanhermanDisco, OxyDiscord[m], aleDiscord[m], nocentDiscord[m], Turtle1331Discor, zwelsternDiscord, crestDiscord[m], peterkDiscord[m], foxcoolDiscord[4, neohexDiscord[m], CatManDoooDiscor, ShadowLingDiscor, MaggieDiscord[m], skillman623Disco, zoink92Discord[m, dhenzDiscord[m], fozzieDiscord[m], katakotoDiscord[, Luna14Discord[m], DazaiDiscord[m], ddahlDiscord[m], Lilz|BetaMeDisco, M4eekDiscord[m], M[AXEL]JulianDis, ZedDiscord[m], dindustriesDisco, codynhatDiscord[, jimpickDiscord[m, cwDiscord[m], NastyEbilPiwateD, benaszabDiscord[, SteffDiscord[m], grvhiDiscord[m], kevinbird15Disco, hvergaraDiscord[, JungleHeartDisco, sprayDiscord[m], TryptophanDiscor, RomaricDiscord[m, celsoDiscord[m], sukarDiscord[m], KarlDiscord[m], NooooooWayyyyyDi, koalalorenzoDisc, jmank88Discord[m, nyarlathotepDisc, SenshiDiscord[m], AtiqDiscord[m], CarboClanCDiscor, mhzDiscord[m], ShmultzDiscord[m, rappelDiscord[m], gregjeanmartDisc, drshamoonDiscord, KinnardDiscord[m, malaclypsDiscord, allgoDiscord[m], OrkunDiscord[m], AblibuDiscord[m], pps96Discord[m], ScottSmileyDisco, megadogberthehim, jenncloudDiscord, BadGriefDiscord[, romaricDiscord[4, chinsuDiscord[m], mattcDiscord[m], braditzDiscord[4, nijynotDiscord[m, h2Discord[m], panDiscord[m], the_nikinDiscord, SchwartzDiscord[, MesaDiscord[m], SmileRobotDiscor, felixschlDiscord, jessicaschilling, KinnardDiscord[4, cesarosumDiscord, sekiDiscord[m]1, DerekDiscord[m], xtream1101Discor, SweatDiscord[m], aaronpkDiscord[m, paulmahoneDiscor, freethinkingawa4, marcocastignoliD, jazzy-jeff^_^Dis, leoalvarezhDisco, bitspillDiscord[, nebulerDiscord[m, TeamIanDiscord[m, modigDiscord[m], gtsDiscord[m], bengoDiscord[m], DamirDiscord[m], thestevewayDisco, bushidoDiscord[m, ExpherienceDisco, deltaDiscord[m], CocoonCrashDisco, TianyiDiscord[m4, EdmundMDiscord[m, jklepatchDiscord, cardDiscord[m], n9tDiscord[m], prtfwDiscord[m], enricomarinoDisc, placer14Discord[, felixschlDiscor4, sachaDiscord[m], aswiththewildDis, cristobalDiscor4, tangoDiscord[m], PamileissonDisco, SuikaDiscord[m], UserDiscord[m], ArunDiscord[m], MatthDiscord[m], godparticleDisco, CryptoEmpressDis, silent_ActivistD, KisulkenDiscord[, funwhilelostDisc, JonwelDiscord[m], HeysteinDiscord[, l^discordDiscord, ryanchristoDisco, celsoDiscord[m]1, r5723013Discord[, ithithDiscord[m], James|ColonyDisc, UsDiscord[m], KinnardDiscord[7, test123Discord[m, OlegStotskyDisco, amatuniDiscord[m, IgutinDiscord[m], DioBrandonDiscor, lauren|Microspon, pierrebocDiscord, plexusDiscord[m], zazikiDiscord[m], leoalvarezhDisc4, ad87657Discord[m, mikealDiscord[m], MisterGoreDiscor, RDeckardDiscord4, chmanieDiscord[4, marcusrbrownDisc, KeegenDiscord[m], te0dDiscord[m], macerbiDiscord[m, LordFenixNCDisco, zcopleyDiscord[m, johanhermanDisc4, maparentDiscord[, iiogamaDiscord[m, robinzzzDiscord[, ksDiscord[m], nofwayyDiscord[m, catman[m], chrisDiscord[m], TristanDiscord[m, boomshroomDiscor, ngamboaDiscord[m, DaekiDiscord[m], wngrDiscord[m], PhiDiscord[m], vexlDiscord[m], myfreeweb, grantcodes[m], jgmac1106[m], jee[m], jamietanna[m], Swedneck_, DiscordBridge[m4, zoglesby, plindner[m], swedneck__, Rixon, omz13[m], j4y_funabashi[m], IWSlackGateway and [Rose] joined the channel
#
[Rose]
Evening!
#
[Rose]
One site successfully migrated, though said migration isn't visible to anyone else yet as the DNS changes still have to propagate, phew!
#
aaronpk
congrats!
#
Loqi
aaronpk: petermolnar left you a message 9 hours, 4 minutes ago: something is off: https://telegraph.p3k.io/webmention/13h0oWOqL7iKFRh4DI - target: "https://brid.gy/publish/flickr", summary: "No webmention or pingback endpoint were found at the target" - but it does have <link rel="webmention" href="https://brid.gy/publish/webmention">
#
aaronpk
hm that's odd
#
[Rose]
Turns out using webFTP is a really bad idea, but there we go all fixed.
[jgmac1106], [grantcodes] and [Lewis_Cowles] joined the channel
#
[Lewis_Cowles]
When looking at pushing things out [Rose] have you looked at https://www.imgix.com/ they allow you to put media in a S3 or many other types of storage, but they distribute it. A really cool thing is you can upload 1080p images, and contextually serve smaller images, scaled down images which get cached. Your original media is preserved. It's wonderful to have nice tools
#
[Lewis_Cowles]
Of course budget matters though. I only found out about this service from my job
#
[Rose]
Intriguing
KartikPrabhu and [tantek] joined the channel
#
[tantek]
[aaronpk] Bridgy doesn't require u-syndication on the link to Bridgy for the webmention to Publish to work. Does IndieNews require u-syndication on the link to https://news.indieweb.org/en?
#
aaronpk
ooh, I think it does
#
aaronpk
IIRC that was because there would be false positives otherwise, like if people just mention indienews
#
[tantek]
right I think this is why Bridgy Publish has "special" URLs for triggering it, rather than just to its homepage
#
[tantek]
and then doesn't require the class name
KartikPrabhu joined the channel
#
[tantek]
I'm not sure that linking to the indienews home page is semantically correct use of u-syndication
#
[tantek]
e.g. I have code that goes through all my u-syndication links *assuming* each is a link to a permalink where there is a copy of my post, and then presents them in the UI
[davidmead] joined the channel
#
aaronpk
ah yeah using separate publish URLs would work
gxt joined the channel
#
[tantek]
using the u-category method instead
#
aaronpk
so I think my reasoning for the u-syndication that way was as follows:
#
aaronpk
1) it started out _only_ with the long-url method, where that link would in fact be the URL of the syndicated copy
#
aaronpk
2) I then added the home page method of syndication
#
aaronpk
3) it returns the URL on indienews in the webmention response, so the assumption is that the software would go replace the syndication link after sending the webmention
#
aaronpk
I think if I were to design this from scratch I would not do it that way
gxt and [KevinMarks] joined the channel
#
[tantek]
1) makes sense to me for why it started that way
[benatwork], krt^^, ffl^ and dsrt^ joined the channel; gozalaDiscord[m] left the channel
#
[tantek]
kevinmarks, re: storing a hash of the page when we linked to it, I'd think we'd want something more forgiving, like maybe hash only the contents of the body element, with whitespace removed?
#
[KevinMarks]
I was thinking of one that would work for content security but you could also parse for mf2 and hash that? Or maybe the entry.value
ffl^ joined the channel
#
shrysr
I am having trouble parsing links from my xml feed using webmention.app locally on my vps. It works fine when i supply the actual blog post link / file . I get a type error, and earlier i was getting other errors too while using the xml file
#
[KevinMarks]
You should be using the html, yes. It's hard to get xml to pass as html
#
Loqi
it is probable
#
[KevinMarks]
Also, you want the link that the mentioned page adds to go to the html version
#
shrysr
but then how can i use webmention.app to scan all the html files of my website?
#
shrysr
cant I do that with a single command ? because i cannot pass in a directory to the npx webmention command
#
shrysr
i'm also struggling to figure out how to implement a receiving point on my vps.
#
shrysr
HOLY !@!@#!@ [KevinMarks] i got it working with xml ... i just used the default template from hugo's site and changed it so that the entire content is extracted, instead of a summary.
#
[KevinMarks]
Ah, right, then it will be in html. Though you may still get the wrong backlink
#
shrysr
hmm -it appears the backlink is ok
jjuran, vika_nezrimaya and DisWebDiscord[m] joined the channel
#
shrysr
aaronpk: is my underrstanding correct that the development section of webmention.io's github readme contains the instructions to run webmention.io locally ?