#dev 2020-03-28

2020-03-28 UTC
simons, HbHighland, [tantek], Nuve, KartikPrabhu, [Cheuk], nickodd, [cleverdevil], [jeremycherfas], [Michael_Beckwi], loicm and gRegorLove joined the channel
#
@frankmeeuwsen
Gebruik mijn webmention endpoint om op mijn blog te reageren met je eigen blogpost - https://diggingthedigital.com/how-to-respond-to-this-blog/
(twitter.com/_/status/1243825408975482880)
simons, [jgmac1106] and [Sadik_Shahadu] joined the channel
#
@kisik21
Why a centralized Microsub server might be a good idea: https://fireburn.ru/posts/1585393501
(twitter.com/_/status/1243856635942010882)
[jeremycherfas], dmitry and KartikPrabhu joined the channel
#
[jeremycherfas]
!tell dmitry I started off with a simple application of Tailwind.css and now, inspired by something from adactio, I am moving towards more fluid typography for text. I could not live without the Firefox Responsive View developer tool.
#
Loqi
Ok, I'll tell them that when I see them next
swentel and [grantcodes] joined the channel
#
[grantcodes]
Proper fluid typography based on `vw` and `calc` is really cool
#
[grantcodes]
I'm thinking I'm going to separate my website frontend and backend into separate services. Anyone else do this?
#
Zegnat
Wasn’t Charlie doing that?
#
swentel
she uses Drupal for the backend
#
swentel
not sure how she's doing the frontend
#
[grantcodes]
Who is Charlie?
#
[grantcodes]
Doubt that'll work 😛
#
Zegnat
Sorry, my mind did not want to recall her homepage. Here: https://sonniesedge.co.uk/
#
Loqi
I'll keep using console.log until I die
#
swentel
not sure if she's on indieweb
#
swentel
the site I mean
#
[grantcodes]
Lol where did that loqi phrase come from
#
Zegnat
I think she is? There are definitely a couple mentions on the wiki, she has been at IWCs
#
Zegnat
That is the title of her site, so Loqi gave it as the “link preview”
#
[grantcodes]
I've definitely seen this site before, just hadn't put a name to the url 😄
#
[grantcodes]
Ahh I thought loqi was going skynet on us
#
[grantcodes]
Well I started moving my frontend to next.js which is pretty cool. Not quite figured it out fully, but I can statically generate it pulling data from my backend, or run it serverless
#
Zegnat
is playing with installation of the Drupal RC
#
swentel
if you have question, don't hesitate to ping me
#
swentel
*questions
#
[grantcodes]
What were your requirements Zegnat? I know you're trying out different cmses but not really why
#
Zegnat
Ease of use of the editor, mostly.
#
[grantcodes]
And why not all micropub all the time? 😜
#
Zegnat
I’ve found that to be the point where I most easily stop my own development, and then I do not end updating because their is no UI to do so. Which in its turn just means I end up using other spaces to post stuff.
#
Zegnat
Haven’t really found one that fits me, I guess? And writing one myself bumps into the same issue of creating a writing UI
#
Zegnat
It also turns out that I actually do a whole lot of editting over and over again, more wiki style than blogging style. Which is not a super strong suit of most micropub clients.
#
[grantcodes]
I've not used drupal for a long time, but last time I did I was confused 😅
#
[grantcodes]
Yeah definitely a distinct lack of editing support
#
Zegnat
I keep getting confused with the WP ecosystem, but it has a pretty good editor. But as Drupal now seems entirely composer isntallable and symfony based (which I also have plenty experience with) that ecosystem may just match me better.
#
[grantcodes]
To blow my own horn I definitely thing the postrchild browser extension was the closest to a good editing & updating experience we have in micropub, but it's currently too buggy and unpolished
#
[grantcodes]
Yeah WP is designed for people who don't know how to use composer
#
[grantcodes]
But if that's what you want https://roots.io/bedrock/ is solid
[LewisCowles] joined the channel
#
[LewisCowles]
shots fired. It's just a project that outputs vendored dependencies in it's public repo''s, which results in lower build time. It's definitely not worse than either needing to develop your own vendoring process or downloading from the internet every single time you deploy
#
Zegnat
It is a matter of familiarity, I would say. I am used to Zend and Symfony, pulling in only the packages I need. I have been involved with some PSR standardisation discussions as well as implementations around HTTP PSRs.
#
Zegnat
With that in mind, I actually find it more daunting to do WordPress downloading and deploying than to juggle my packages ;)
#
[LewisCowles]
Right, but those didn't exist when WP was written, and to change WP to fit later projects is why Drupal is such a state of broken BC
#
Zegnat
[grantcodes]: that bedrock page looks interesting, I should have a look at that
#
[grantcodes]
Yeah I'm happy to recommend bedrock and anything else the roots people make in the wp world. They are heavily used.
#
[grantcodes]
The problem with WP + composer I run into is that I build sites for other people to use, so of course you want to give them control of plugins. But for a single user site for a developer or a site you work on full time the composer for plugins setup is great
#
[LewisCowles]
So you're mono-repo'ing, which is what causes the confusion?
#
[LewisCowles]
I'll admit WP having an entirely public folder structure sucks. It was one of the first things I liked about Python, CodeIgniter, Java etc. They got away from a filesystem + pseudo file system (rewrite) for requests and put all the request logic in an app, which mostly was not publicly reachable.
#
dmitry
jeremycherfas, what is your application about? I mean, is it a blog or what is it?
#
Loqi
dmitry: [jeremycherfas] left you a message 47 minutes ago: I started off with a simple application of Tailwind.css and now, inspired by something from adactio, I am moving towards more fluid typography for text. I could not live without the Firefox Responsive View developer tool.
#
dmitry
yep, Loqi, I've just answered it. Good bot, anyway. What do you do with console.log? :D
#
dmitry
on the subject of separating frontend and backend -- do you mean creating a website, that will require tons of JS to render a simple page? What are the pros of this approach?
#
[grantcodes]
Haha yeah, I don't fully understand either. What I do know is that whatever way you are doing it you should set a min size and max size, and the screen sizes those should apply, otherwise you can end up with tiny or huge text
#
[jeremycherfas]
Did you see the things adactio linked to? Hang on.
#
Loqi
Breakpoint-based type sizing has always felt a bit arbitrary to me. It seems like equal parts guesswork and compromise, where the better we want it to work, the more stuff we need to design. It strikes me as inelegant and inefficient. Over the past f...
#
[LewisCowles]
grantcodes, you might be able to keep a file with wordpress plugin slug and url's. That would help you to use wp-cli to get a similar deployment to composer if you desired that without a monorepo
#
Zegnat
[LewisCowles]: I am not sure I am really confused. Again, it is just a question of familiarity. I am also evaluating WP as I evaluate Drupal.
#
Zegnat
But with composer and generally Symfony/Zend I know how to swap out libraries. Don’t want to use Diactoros? I can just require in Nyholm/psr7 instead and get the objects I am already used to. Because of lack of familiarity I wouldnt be able to say how to do that in WP
#
[jeremycherfas]
That and the post it links to really helped me to understand it, to the point where I removed all font sizing from Tailwind and brought it into my `custom.css`
#
[LewisCowles]
Zegnat, you are not able to
#
[LewisCowles]
As-in WordPress provides no facility for such choice
#
[grantcodes]
dmitry: No js needed. But it would be possible to do that way if I wanted. Makes for easier maintenance and portability
#
[LewisCowles]
Never look into WPQuery if you wish to have familiar and modern affordances
#
dmitry
then I definetly don't understand what this separation means. How is it works?
#
[LewisCowles]
It's not a modern platform, it's a popular, working platform with modern formats
#
[grantcodes]
[jeremycherfas] ah that first graph on that post shows exactly what I mean! That post looks like it has more thought than I ever put into it 😂 I just set it up and use rems for most stuff and everything magically scales
#
[LewisCowles]
If you wanted to put a more modern platform in-front of WP, you could indeed proxy to the parts you like, or use it as a headless CMS with private admin space
#
[LewisCowles]
BUT generally that removes the orthogonality of plugins
#
[LewisCowles]
the way that project thinks about the world
#
[jeremycherfas]
I used to do that too; but I wasn’t entirely happy with Tailwind’s default font sizes, and rather than get into a full install of Tailwind, I decided to try and understand responsive type size. It has been very worthwhile. I’m still using Tailwind to set widths of divs and things like that.
#
[grantcodes]
On that wp + composer stuff if you use bedrock or something similar you can use those sort of libraries to do whatever you want. But in the WP world you're recommended to use only built in WP functions, mainly because most hosts suck, and WP is set up to run on like every server and php version imaginable.
#
[grantcodes]
dmitry: More or less the same way you were imagining with the js I think. Basically using api requests to get content. The framework I am using does server side rendering and then client side js for secondary pages (if you have js turned on)
#
[jeremycherfas]
!tell [snarfed] Just tried to huffduff a video and the dialog stuck at `Opening Huffduffer dialog …` I found the link in source and used it direct from the browser, and all worked fine. So, not sure what the problem might have been, but wanted to let you know.
#
Loqi
Ok, I'll tell them that when I see them next
#
Zegnat
[grantcodes]: yeah, that may be one of the reasons why I do not feel super comfortable with WP. I do not need compatibility with everything. I would gladly use a system that only supports the latest version of PHP, for instance
#
Zegnat
But we’ll see. As I said. Still evaluating. Haven’t setup Drupal before
#
Zegnat
On CSS and scaling typography, I really liked this article: https://fvsch.com/css-locks/
#
[jeremycherfas]
That’s a pretty good account too. Thanks zegnat++
#
Loqi
zegnat has 16 karma in this channel over the last year (53 in all channels)
#
Zegnat
It is linked on the indieweb typography page I just noticed. So if you have other interesting resources, do add them there :)
#
Zegnat
What is typography?
#
Loqi
Typography is the art/science of making text attractive and readable https://indieweb.org/typography
#
sknebel
[jeremycherfas]: something I noticed on your site, the prev/next buttons have the link only on the text, not on the entire button, but it changes style on hover as if it did
#
[jeremycherfas]
I’ll do that when I have done my write-up. What’s funny is that the maths on that page is soo very simple, to me, but the CSS bits are where I am grateful for the extra illustration. I’m sure there are others who will find the reverse.
#
[jeremycherfas]
You’re right, and I’m trying to find a way to fix that, but not so far. Is it Fitt’s Law I’m trying to implement? I think so.
#
[jeremycherfas]
Anyway, those buttons don’t work equally well for all pages, which is something more important in the hierarchy of things to fix.
#
sknebel
from a quick try in dev tools, two changes: a) turn <button> into a <div> b) move that <div> inside the <a> tag
[jgmac1106] joined the channel
#
[jgmac1106]
[jeremycherfas] I use viewport font sizes, love them
#
[jgmac1106]
I don't have to write any media queries for fotns anymore....except in edge cases where I am mucking about with meaning
#
[jeremycherfas]
Thanks sknebel++
#
Loqi
sknebel has 17 karma in this channel over the last year (55 in all channels)
#
[grantcodes]
Zegnat: Both angles make sense to me with WP and compatibility, for everyone or just you. But if you're writing plugins / themes for yourself you can use any modern php you want. We use all the php 7 niceness at work.
#
GWG
I am slowly moving past PHP 5.2
nickodd joined the channel
#
[jeremycherfas]
Zegnat On the strength of that article, I may even consider responsive line height. But not for a while.
#
[LewisCowles]
@GWG that's a joke right?
#
[grantcodes]
[jgmac1106] I think you should put mins and maxes on your font sizes css. It ends up super tiny or large with odd viewport sizes
#
GWG
WordPress only upped it's minimum last year. Why rush
#
GWG
I have yet to convert to namespaces
#
[LewisCowles]
Do you have a post explaining it in more detail than what WP deems appropriate?
#
[LewisCowles]
Do you backport patches to 5.2/
#
[LewisCowles]
There must be more to this
#
Zegnat
[jeremycherfas]: yeah, it is definitely a step by step sort of thing to undertake. There are also some articles just about line-height: https://blog.typekit.com/2016/08/17/flexible-typography-with-css-locks/ . Interesting stuff in the type ecosystem :)
#
GWG
[LewisCowles]: I am referring to coding. I run 7.3, I just don't use features from newer versions.
#
GWG
swentel++
#
Loqi
swentel has 15 karma in this channel over the last year (32 in all channels)
#
[grantcodes]
https://make.wordpress.org/core/2020/03/20/updating-the-coding-standards-for-modern-php/ here's a recent post on wp code standards that covers the current state [LewisCowles]
#
GWG
I just am not going to go back and convert all my code... will do it over time
#
swentel
GWG, currently connects to the anonymous account like Android does .. will look how I either can share the token from android, or implement indieauth authentication in it too.
#
swentel
or offer both options, (and also setting custom endpoints like android allows)
#
[LewisCowles]
Thanks grantcodes, I'm aware of their guidelines page.
#
[LewisCowles]
It's a bit like at work, one of our engineers telling me rails guides said to do something that broke production
#
[LewisCowles]
Ah, that's not the page I thought it was, but it does aggravate me.
#
GWG
I am looking forward to the null coaslescing operator
loicm joined the channel
#
Loqi
GWG has 23 karma in this channel over the last year (137 in all channels)
#
[jgmac1106]
[grantcodes] yeah I need to learn more about that or what happens I start tweaking a page without creating a new selector and forget what I am doing to font size elsewhere
#
[LewisCowles]
that was the nuance I was hoping for
#
[LewisCowles]
I've been a bit spoiled of late with new language features
#
[jgmac1106]
Kartik helps me a ton, I love his typography
#
[LewisCowles]
If it's just more verbose code, it might be of benefit to stick to 5.4
#
GWG
I have to wait till the minimum version is 7 for that
#
[LewisCowles]
I really loved 5.4
#
[LewisCowles]
But then I really loved 4 too when it was released
#
[LewisCowles]
7.4 will be the next. I don't know what it is about 4's
#
[LewisCowles]
ooh and it's 7.4.4 already
#
[LewisCowles]
I may be in-love again
jenelizabeth joined the channel
#
Zegnat
[LewisCowles]: Webmentions spec sections 3.1.4 and 3.1.5 cover updates and deletes. Which I think was never actually covered by Pingback. Though I am not 100% sure, as I have never implemented pingback https://webmention.net/draft/#sending-webmentions-for-updated-posts
jenelizabeth joined the channel
#
[LewisCowles]
> If the source URL was updated, the sender should re-send any previously sent Webmentions, (including re-sending a Webmention to a URL that may have been removed from the document), and should send Webmentions for any new links that appear at the URL.
#
[LewisCowles]
That's the part I did, but it's led to duplication
#
sknebel
then whatever you send the mentions to has a bug
#
[LewisCowles]
My side I use a document checksum + path to check if I should re-send. Following that part of the spec, I'd assumed the POST would be turned into a PUT-like operation using the target
#
[LewisCowles]
it's webmention.io btw
#
sknebel
example?
#
[LewisCowles]
It could have a bug, but I'm keener to explore if I've messed up
#
[LewisCowles]
it may actually be that the source is different
#
sknebel
different source would be a new mention then, yes
#
sknebel
since the receiver likely can't tell just from looking at the site that it had a different url earlier
#
[LewisCowles]
well... The service recognises that it's the www.lewiscowles.co.uk in the webmention
#
[LewisCowles]
That's the challenge
#
[LewisCowles]
They both list my site, because it's the canonical URL
#
[LewisCowles]
Actually, they don't. I just checked. It's my author that is the same, which is how I've confused mysel
#
Zegnat
Yeah, there is no duplication in there
jenelizabeth joined the channel
#
sknebel
tbh, not accepting mentions not sent from the canonical url if there is one declared might be a useful rule
#
sknebel
at least not as new entries
#
[LewisCowles]
I don't know about blocking, but perhaps following canonical url?
#
Zegnat
I do not think webmention spec tries to generate canonical urls. Though it does follow redirects.
#
[LewisCowles]
In any case it is my side, my bad
#
Zegnat
Also, re: deleting. You need to make the original URL return 410 and then resend its webmention. Hopefully that would trigger the receiver to remove their copy, as you have told them the resource no longer exists
#
Zegnat
Not actually sure what webmention.io does with deletion requests
#
sknebel
or serve content that doesn't contain the url anymore
#
sknebel
(probably)
#
[LewisCowles]
I'll just document it as a limitation
#
[LewisCowles]
because the spec is unauthed in it's raw form, a limitation of it standalone is that DELETE verbs are difficult.
#
[LewisCowles]
I'm fine with design choices, it's not a complaint
#
[LewisCowles]
and all I changed was authorship
#
Zegnat
“spec is unauthed in it's raw form” - I am not sure I understand what you mean by that
#
aaronpk
The authentication is checking the content at the source url
#
[LewisCowles]
if an attestation token extension was provided for the spec, it could enhance a webmention, using indieauth in order for me to attest that I as the owner of `source`, wish to remove links with a given `target`
#
[LewisCowles]
so I would have an indieauth one-time token for www.lewiscowles.co.uk
#
aaronpk
It's not as simple as it sounds
#
[LewisCowles]
perhaps it then gets into the weeds on scopes for indieauth. I'll need to check if indieauth supports scopes
#
aaronpk
If you start going down that path you'll end up making something that looks similar to activitypub
#
[LewisCowles]
It's more of a thoughts / notes to go next to my notes on webmention
#
[LewisCowles]
perhaps activitypub is a better choice for me. IDK
#
[LewisCowles]
I suppose it also matters how you think of a webmention, and it's meaning.
#
[LewisCowles]
deletion doesn't make sense if it's "I did like this, on date"
#
[LewisCowles]
because it was a fact
#
[LewisCowles]
my case is cluttered with fluff about my own setup
#
[LewisCowles]
which might not be a good approach for examining a spec or imagining extensions
#
[LewisCowles]
more fodder for my blog
#
Zegnat
Webmentions, as I see them, are not really meant to express more than just “source links to target”. By telling target about this, more stuff can happen on the network.
#
Zegnat
As long as source still links to target that relation is valid. If you take away the link from source (or source completely HTTP 410) you can resend the webmention so target can find out the relation no longer exists.
#
Zegnat
I am not sure how that is helped by any type of token or otherwise authenticated flow.
[tantek] joined the channel
#
[tantek]
what is delete
#
Loqi
A deleted is a post that has been removed https://indieweb.org/delete
#
[tantek]
[LewisCowles] ^^^ that should be sufficient
#
[grantcodes]
swentel: How easy is it porting indigenous to electron? I suppose you need to rewrite everything in js? If so there might already be a bunch of code in together or my npm modules to help you 🙂
#
swentel
[grantcodes], yeah basically rewriting all in js
#
swentel
[grantcodes], being lazy do, do must of the stuff with jquery as I'm used to that
#
swentel
s/do/though
#
swentel
(but that's fine I guess hehe)
#
[grantcodes]
Haha fair enough
#
swentel
the hardest part is probably figuring out how I create all the packages
#
swentel
let alone test, I only have linux
#
[grantcodes]
Also I think PWAs are worth considering over electron apps now. I think they can be installed on basically any desktop now
#
swentel
(and too lazy right now to start spinning up vm's)
dmitry joined the channel
#
[grantcodes]
Like I thought about doing it for together but now an installed pwa works great for me
#
swentel
[grantcodes], that's the main reason I'm writing this with jquery, want to launch a pwa version on indigenous.realize.be then
#
swentel
then I don't have to maintain to much code, it's the same code
#
swentel
also, I'm just curious more at the moment how this will turn out :)
#
[grantcodes]
Lol I was about to say you will have a lot to maintain - web client on top of drupal and android
#
swentel
well, as long as I use them, I don't mind :)
#
swentel
I also consider the android client almost feature complete
#
swentel
I really can't think of many things to put in
#
swentel
same for Drupal
#
swentel
so it's more fixing bugs, which are rare nowadays
#
swentel
and with the lockdown, too much time on my hands ;)
#
[grantcodes]
I've not used the app in a while tbh, need to give it another go
#
swentel
(otoh, with the new 7x7 and 8x8 cubs, I could use all the time for that haha)
#
swentel
[grantcodes], it starts with an anonymous account now, it has become a great onboarding app (at least I think so)
#
swentel
and you can even swap the microsub or micropub endpoint without ever logging in with indieauth too
#
swentel
via accounts
#
[grantcodes]
Reinstalling. Might give you some feature requests to match it up with together on the web 😜
#
[jeremycherfas]
Fitts’ Law satisfied (locally) Thanks for pointing out the problem to Sknebel++
#
Loqi
Sknebel has 18 karma in this channel over the last year (56 in all channels)
#
swentel
there's just less features
#
swentel
[grantcodes], hehe, fair enough ;)
#
[grantcodes]
Hmm that's super cool there's a preview. But maybe a popup with the option to log in or use the unauthenticated would be good. Took me a second to figure out where to go
#
swentel
mm fair point
#
swentel
opened an issue for that :)
#
[grantcodes]
Added another that keeps me on together 😛
#
superkuh
Oh, back up.
#
swentel
[grantcodes], haha, good one :)
#
[grantcodes]
I think it's mainly dark mode, mark read on scroll and the different views that I miss when I use other clients.
#
swentel
yeah read on scroll is coming too
#
swentel
tricky to implement
#
[grantcodes]
Yep, saw that one!
[jeremycherfas] joined the channel
#
swentel
looks fairly easy dark mode
#
[grantcodes]
I know next to nothing about android, but I would guess it shouldn't be too difficult if you're using default ui components and whatnot
#
swentel
indeed, it's a one line in the styles
#
swentel
and defaults look sane
#
swentel
I might have to override a few colors maybe, but that's it
#
[grantcodes]
Killer! That would be a great feature if it's easy to do
#
[jgmac1106]
coming in from meta, if I wanted to to do "similar authors" which is just a bunch of h-cards from my /following cards would I need to strip the h-card not to mess up parsers? Just strip them bc nobody's doing anything with the data so who cares? put it outside an h-entry?
#
[jgmac1106]
but I broke my /following pages into different php files to use them anywhere on my website and been thinking on idea of instead of "similar posts" I do "similar authors"
[schmarty] joined the channel
#
Zegnat
Why do you think parsers would get messed up by multiple h-cards existing?
#
swentel
[grantcodes], default is fairly ok already, https://postimg.cc/Bjnj3g20
#
swentel
at least for the post screens
#
swentel
need to alter the reader, that's still way to white :)
#
[grantcodes]
Wow nice!
#
[grantcodes]
swentel++
#
Loqi
swentel has 16 karma in this channel over the last year (34 in all channels)
#
swentel
but it's really just altering the colors, so that's good
#
swentel
do you set darkmode globally, or do you also want toggle it in the app itself (note, not sure if that's possible)
#
[LewisCowles]
[tantek] [Zegnat] I have no interest in actually deleting the post
#
[LewisCowles]
or faking a 410
#
[grantcodes]
Either is fine. I think globally is probably the better way now
#
swentel
yeah, I think so too
#
swentel
ok, will work on that tomorrow a bit :)
#
[grantcodes]
Then you can do the thing where it's light during the day and dark at night
lwh left the channel
#
swentel
if there are things that bother you, let me know, they usually go quite fast :)
#
swentel
(especially nowadays, a tiny plus side of the lockdown)
#
[grantcodes]
Nothing that's not already on the list 🙂
#
swentel
hehe, cool
#
swentel
anyway, dinner time, later all!
#
[grantcodes]
!tell schmarty I fixed a bug with `indieauth-helper` and updated dependencies while I was there, so it should remove those warnings you were seeing
#
Loqi
Ok, I'll tell them that when I see them next
#
[schmarty]
Ah neat! grantcodes++
#
Loqi
grantcodes has 22 karma in this channel over the last year (33 in all channels)
#
[grantcodes]
Also it reminded me your other issue with build step in it. There is none! I could add one, but it would only be useful to generate something that can then be used on the frontend without a build step
#
[jgmac1106]
sorry dropped off zegnat usually my user error, I am almost confident I almost to author stuff right 98% of the time
#
[grantcodes]
A build step, so you don't need a build step 😄
#
[jgmac1106]
but want to play with this idea of "suggested author" since I already did much of the heavy lifting, only on articles, not notes
#
Zegnat
Well, manual ’til it hurts it always valid, [jgmac1106]. So just have a snippet of people links ready to paste in :D
#
[tantek]
[LewisCowles] if you don't want to delete, then I don't understand your use-case of wanting to rescind a webmention. Can you describe the outcome you want and why?
#
[LewisCowles]
I never said I didn't want to delete. I said those two methods are unworkable.
#
[LewisCowles]
The outcome I desire is that alternate copies of content if linked, assume and link the canonical form
#
[LewisCowles]
Deleting a file is not the same as deleting a webmention, even if the webmention spec only allows for signalling via HTTP; I'd sooner have the duplicate there (not truely my problem anyway) than perform strange flows to make them go away
#
[LewisCowles]
The file in this case is on GitHub
#
[LewisCowles]
So deletion would mean deletion in a commit for at least as long as it would take for webmention to pick it up
#
[LewisCowles]
a manual DELETE HTTP request would serve better, but I accept it's not in the spec, so I won't solve
#
[LewisCowles]
I'll instead leave the author with two links from the same content to their article
#
[LewisCowles]
Alternate and Canonical may also be poor signalling methods.
#
[LewisCowles]
and confuse this further
#
Zegnat
Would have been hard to spec a DELETE HTTP step, when not all endpoints have a concept of a webmention as a separate thing. E.g. my endpoint has nothing that it could delete if you were to send such a request.
#
aaronpk
i'm still not following what the actual problem here is
[chrisaldrich] joined the channel
#
[chrisaldrich]
Zegnat, in your comparison of WP and Drupal, you might want to look at Backdrop CMS, which is a fork from Drupal about 3-4 years ago that has very closely tracked Drupal changes. Part of their goal was to be a bit less corporate/devvy and focus more on UI and ease of development/use for small businesses and non-profits.
#
[chrisaldrich]
I suspect you could modify swentel's indieweb plugin for it pretty quickly and it might suit your needs as well as be a useful project for the homebrew crowd who don't need all the power (or overhead) that Drupal typically brings.
#
[chrisaldrich]
I haven't looked at in a year, but I do remember liking the direction they were moving in.
#
Zegnat
Hmm. I think it shows that Backdrop is still Drupal 7. drush install rather than composer. But I may give installing it a try.
#
Zegnat
Honestly though, unless they rebuild the editor views it is not likely to be any better for me than normal Drupal. Especially since I do not mind Drupal being more aimed at devs ;)
#
[LewisCowles]
There was a problem with me being an idiot. I linked a github.io page instead of my main domain to update to test author information.
#
[LewisCowles]
There are now two links to one site, from a single piece of content
#
[LewisCowles]
It's not "a problem" as such. I'm fine with the understanding it is more of a pain to get the thing wiped than to fix
#
[chrisaldrich]
Zegnat, I'm not sure how much the editor UI may be different, though with their focus being on smaller agencies being able to support small businesses not needing heavy interface, perhaps there's some useful iteration/simplification to be found there.
#
Zegnat
!tell swentel Do you know if there is a prefered (secure) setup for folders and configs under nginx with Drupal? drupal/recommended-project gets me htaccess for Apache, web.config for IIS, but ignores nginx?
#
Loqi
Ok, I'll tell them that when I see them next
swentel joined the channel
#
jacky
aaronpk: is there a reason that xray returns a 200 if an error is returned?
#
jacky
for example "https://xray.p3k.app/parse?url=http%3A%2F%2F127.0.0.1%2F&pretty=true" (I know it's a local IP) would return a 200 OK
#
jacky
I'd figure it to be a 400 of sorts
#
jacky
can open an issue if that's better re: decision
#
Loqi
[aaronpk] This is a classic misunderstanding of mixing transport errors with application errors. HTTP errors indicate that something went wrong with the request you sent. So if you send a request to XRay and XRay can't find a token endpoint, that isn't really ...
#
sknebel
but xray processed the request correctly
#
jacky
lol I just got that part from that issue :)
#
sknebel
and your request was fine too
#
jacky
alright cool
#
sknebel
I guess it depends on if you see xray as a service or as a "transparent adapter" of some kind
#
jacky
I did see it as the latter
#
jacky
rewriting for the former :)
#
sknebel
(I.e. I wonder how granary handles it - I guess if a feed I subscribe to through granary starts spewing errors, I would want my client to see the errors too?)
#
jacky
the thing I have is kinda dumb (like it doesn't know what x-ray is) but it at least knows to look for a 'key' if it was actually successful
#
sknebel
but granary is more explicitly just a translator, made to be used with normal feed consumers too
#
jacky
yeah like if a remote resource fails then eventually granary fails as well
swentel joined the channel
#
Loqi
swentel: Zegnat left you a message 1 hour, 22 minutes ago: Do you know if there is a prefered (secure) setup for folders and configs under nginx with Drupal? drupal/recommended-project gets me htaccess for Apache, web.config for IIS, but ignores nginx?
#
swentel
Zegnat, hmm, not sure, haven't used nginx in ages on production
#
Zegnat
swentel: you run Apache in productin?
#
swentel
also, indieweb module won't work at all on Backdrop
#
jacky
I use nginx (but not with drupal)
#
swentel
most hosts use apache yes, and works fine :)
#
swentel
most use nginx as a proxy
#
jacky
are you trying to use custom nginx config for drupal? could allow the root app config source in config from the app's code
#
swentel
we don't always choose the hosting party for our clients
#
jacky
s/app's code/app's source directory/g
#
swentel
depends a bit on your setup too
#
swentel
there's a setup where the vendor and config is outside the webroot too
#
swentel
and looking at that conf it assumes vendor is even in the web root (which isn't ideal)
#
Zegnat
jacky: I was trying to find whatever the recommended way to go with Drupal is. They only seem to ship htaccess and web.config
#
Zegnat
I think that conf might not be up to date with the latest Drupal
#
Zegnat
vendor, by default, goes outside of the web folder now
#
Zegnat
although I am surprised by the amount of code that still is shipped in the web folder.
[tantek] joined the channel
#
Zegnat
But it is also the htaccess file that blocks access to a lot of that code. Which made me hope there was a similar config file available for nginx
#
Zegnat
E.g. it seems to block all PHP files that are not in the root of the web/core/ directory from being accessed. Thus gating resources that are only for being run by the server and not being accessed. (Resources that would have been nice to have exist outside of the web folder completely.)
#
swentel
we run a few setups like that (on apache though)
#
swentel
but I see there's a little nginx snippet
#
swentel
although that's really just the server setup, but that one should really be more secure
#
Zegnat
Will have a look
#
Zegnat
If I can skip all the PHP file blacklisting, the rest of the configurations are not really anything special for Drupal
#
Zegnat
I was mostly afraid I would miss some url path blocking and would crippling the CMS security. Which is why I was looking for a default.
#
Zegnat
Surprised Drupal ships with an IIS config but not nginx config, though.
#
dmitry
is it possible to config nginx with .htaccess-like file? I thought it could only be configurated with general config files, not in website folders
#
dmitry
if it's impossible, then it could be an answer
#
Zegnat
Hmm, you may be right that nginx can’t do that. Still would have been nice to ship the nginx config anyway ;) Rather than link to one on nginx.com that may or may not get updated
#
Zegnat
Looks like this is the ticket to watch, swentel: https://www.drupal.org/project/drupal/issues/2385395 Created 2014. Yikes.
#
dmitry
agreed
#
dmitry
looks like all CMS, except WP, are in decline
#
dmitry
I mean, traditional CMS
#
jacky
kinda sad tbh
#
swentel
oh Drupal issues can take a long time ;)
#
dmitry
something specific like MediaWiki or TidyCMS, LiveStreet are more-or-less safe in their areas
#
Zegnat
Clearly. And it does seem like related issues have been worked on, so it is not completely frozen in time even if that ticket seems to be unmoving.
#
superkuh
The best CMS is your filesystem.
#
Zegnat
I already felt a huge difference in composer/package infrastructure of Drupal between when I first tried D7 and now D9
#
dmitry
well, I guess it's an evolution. WP won fair and square. And now web itself are arguable probably declining
#
dmitry
but for personal use I wouldn't see why use WP
#
dmitry
it's unusable for literally anything I want to do on web
#
Zegnat
I want an editor that encourated me to come back and tweak things often. And I do not trust myself to build it. Thus: CMS
nickodd left the channel
#
Zegnat
Maybe it is all a failed endeavor and I should just be writing a micropub client that excells at post editing :P
#
jacky
oof so even if it's not an erorr
#
jacky
*error
#
jacky
actually nvm
#
jacky
my thing with xray for my 'endpoint page parser' tool (I send a URL and aim to get something back that I can use to parse into MF2)
#
jacky
like if I can't parse it as mf2, I just assume the endpoint didn't give me anything useful
#
jacky
is trying to avoid to code anything too specific to xray b/c I do want other custom solutions that are stateless too
[LewisCowles], [chrisaldrich] and [fluffy] joined the channel
gRegorLove, [tantek], KartikPrabhu, swentel and iamdave joined the channel
#
iamdave
hrm, my page refuses to have it's h-card validated and I've stumped myself as to why/how.
#
iamdave
am I barking up the wrong channel?
#
swentel
no here's fine
#
iamdave
http://iamdave.co over to the right, beneath the hero image is where I've linked an h-card, just an <a> class yet indiewebify.me and another validator aren't seeming to see it.
#
swentel
hmmm, the only thing I can think off is that it might be nested (that's at least how it's on my site)
#
iamdave
I take that back, suddenly things verify!
#
iamdave
Found another method of putting <link rel> in the head and there she went.
#
swentel
aah yeah
#
iamdave
hrm, maybe I spoke too soon. Going to continue fiddling, that momentary dopamine hit of getting one thing to work is promising.
#
GWG
swentel: Yay dark mode
#
swentel
hehe, it's good I can test on my phone too
#
swentel
going to play a bit the colors, not 100% satisfied
#
swentel
*with*
#
sknebel
iamdave: that h-card is not in the page source it seems, but just added by javascript? parsers don't execute JS
#
swentel
GWG, although, actually, it doesn't look /that/ bad
#
swentel
I probably need to get used to it
#
GWG
I always turn it on.
#
GWG
I don't like pure white on anything
#
iamdave
sknebel: interesting. Tiddlywiki is the backend here, which is node. Thanks for the pointer.
#
sknebel
it seems like it just puts it in an element as escaped HTML and then client-side JS actually puts it in place. that's not going to happen outside a browser
#
gRegorLove
iamdave, I think there might be some server issue fetching your page from indiewebify.me
#
gRegorLove
I got an application error trying to parse the microformats https://php.microformats.io/?url=https%3A%2F%2Fiamdave.co%2F
#
iamdave
I'm able to throw some rawmarkup inside of <head>, maybe that's the ticket?
#
sknebel
gRegorLove: the page is also 18 MB HTML, that might make it unhappy
#
iamdave
that's a little ways down in my backlog, get around to rendering this as static html.
#
iamdave
she's...chonky right now :D
#
gRegorLove
iamdave, I'm seeing escaped HTML in your page, like `&lt; div class` so that won't get parsed
#
iamdave
hrm.
#
gRegorLove
It's inside a <pre>, is your CMS or build doing that maybe?
#
iamdave
it is, I'm entering html directly into form fields for the elements that have class=h-card, which gets rendered at build.
#
iamdave
which has me thinking then, maybe I have to hack this manually and put this directly into the view template?
#
gRegorLove
Something's off; that's not rendered
#
iamdave
hm.
#
iamdave
un momento.
#
gRegorLove
actually maybe I'm wrong; maybe js is doing it
#
gRegorLove
But the microformats parser is just getting the HTML source, not anything JS does afterward
#
gRegorLove
[chrisaldrich] any ideas about ^ with TiddlyWiki?
#
iamdave
Success!
#
iamdave
adding a class directly in the view template did it. Many thanks for the help troubleshooting this