#dev 2021-08-16

2021-08-16 UTC
#
cambridgeport90[
<vikanezrimaya> "The better option would be of co" <- I agree. But when hosting oneself, how do we deal with issues like the log in page being hammered?A friend of a friend of mine did that, and he won't do it anymore because of the fact his instance was backed as well by Active Directory (why the log on page was being hammered with bad authentication reuests, though, I'm not sure.)
#
[snarfed]
whether and how much to self host is always a good debate! but there's no single right answer, and we're a "big tent" kind of group. you can never self host everything, or every layer in the stack 😁
#
[snarfed]
we care about owning your identity and data online, and the keys there are having your own domain and being able to export your data. beyond that, we're open to many different ways and places to host, both self hosting and otherwise
kimberlyhirsh[d], vilhalmer, astralbijection[, nekr0z, indieweb-irc-bri, hoenir, aaronpk[d], capjamesg[d], chenghiz_, Seirdy, vikanezrimaya, corenominal[d], angelo, doosboox, nsh, [snarfed], oodani, Zegnat[d], unrelentingtech, lahacker[d], rrix, Loqi, stevestreza, benatkin, alex11, Lohn, P[m], hala-bala[m], reed, Abhas[m], LaBcasse[m], SamWilson[m], diegov, cambridgeport90[, lasr[m], rommudoh[m] and hendursa1 joined the channel
#
capjamesg[d]
vikanezrimaya++
#
Loqi
vikanezrimaya has 2 karma over the last year
#
capjamesg[d]
What is hosting?
#
Loqi
Web hosting can be the primary regular cost in maintaining an IndieWeb site; this page lists several options from free on up depending on your publishing needs, like a static, shared, private, or dedicated server https://indieweb.org/hosting
#
capjamesg[d]
What is the "proper" way to create a custom post type using Micropub?
#
capjamesg[d]
Say I wanted to create a coffee post with information like {"varietal": "SL24-", "region": "Kenya"}. Should I nest those attributes as "properties": {ATTRIBUTES}?
#
capjamesg[d]
Most of the examples in the docs are traditional IndieWeb actions like create a post, bookmark, like, etc.
#
capjamesg[d]
vikanezrimaya Re: "Don't forget to save the "me" value too!" I did forget for a bit but I remembered yesterday πŸ™‚
#
sknebel
micropub doesnt know what post-types are
#
sknebel
(once you go down to "it's an h-entry"
#
sknebel
) it's posts with properties
#
sknebel
what those properties are and mean is up to the other layers
#
sknebel
sorry, got interrupted by work...
#
sknebel
so yes, you can make up a few (potentially prefixed, e.g. capjamesg-coffee-region) of your own properties and put them on the post. or nest them in their own microformats object to keep them together, kind of a matter of taste
#
sknebel
the prefixes are a microformats2 thing for people experimenting with properties that are only for their own use, not something generally proposed, to avoid potential naming conflicts and giving humans seeing them a hint
#
sknebel
(re "object to keep them together", e.g. in a review the details about the coffee would maybe live in the item object: http://microformats.org/wiki/h-review)
#
Loqi
Tantek Γ‡elik
#
sknebel
yes Loqi, very helpful
#
sknebel
(but on simple posts I'd probably just go with flat properties, you can always make it more complicated later)
#
sknebel
capjamesg[d]: ^^^ sorry for the break in the middle ;)
#
@adoran2
Are there any paid WordPress themes out there with good implementations of webmentions, or is this not (yet?) mainstream enough? https://indieweb.org/Webmention
(twitter.com/_/status/1427196725014548480)
#
Loqi
ok, I added "https://arcadiamashups.blogspot.com/2009/10/get-current-url-bookmarklet-pattern.html" to the "See Also" section of /bookmarklet https://indieweb.org/wiki/index.php?diff=76644&oldid=71514
jamietanna and [Gabriele_Girel] joined the channel
#
[Gabriele_Girel]
Hej everyone! Dunno if this is the right place, but when I set up webmentions on my website I wrote a short javascript library that can be easily used by anyone. It is also easily extendable with more features, so if anyone is interested in trying this out any feedback is always welcome πŸ˜„ https://github.com/ggirelli/easy-webmention-js
#
Loqi
[ggirelli] easy-webmention-js: A simple JavaScript library to serve Webmentions via Webmention.io
#
jamietanna
capjamesg[d] something I'm starting to favour is making it i.e. a `drink-of` a URL, and that URL then contains all information about the coffee. Then when rendering the site / have some cache in our site, we can look up that URL and provide an `h-cite` of the data
#
capjamesg[d]
I like that.
#
capjamesg[d]
I think drink-of would be appropriate in this case.
#
jamietanna
[Gabriele_Girel]++ awesome! I've been using fluffy's https://github.com/PlaidWeb/webmention.js/ but this looks very interesting and I'll have a look at it too
#
Loqi
[Gabriele_Girel] has 1 karma over the last year
#
capjamesg[d]
I want to report on coffees I am drinking. The original idea was to style them more like notes but having the option to add meta information (i.e. roaster, varietal) would be useful.
#
capjamesg[d]
Right now I support creating a coffee "note" post and creating replies to posts.
#
capjamesg[d]
(And sort of updating! Only sort of -- still a lot of spec tests to pass.)
#
jamietanna
capjamesg[d] yeah, then the benefit is that you could i.e. create a central service ( /pipes ) which would allow others to do the same. But there's also some info that may be specific to yours, so may be a bit more complex and may be worth doing just for you right now
#
capjamesg[d]
I am just doing what I can for myself right now. I am still very much trying to understand micropub. My code needs cleaned!
#
capjamesg[d]
jamietanna I came across your blog post on building a micropub client yesterday. It was a good read!
#
[Gabriele_Girel]
thanks @jamietanna πŸ™‚
#
jamietanna
Thanks! It's definitely been handy to have a few things just for my own use cases, on top of others' Micropub clients I use a fair bit
#
jamietanna
re your thoughts yesterday about sending the Bearer token in a cookie, I'd opted for encrypting the cookie with a shared secret owned by the Micropub client, but then when the form is rendered it's in the `access_token` hidden field
#
capjamesg[d]
Yeah. I might do that a bit further down the line.
#
capjamesg[d]
That was something that came to mind as an extra security step.
#
capjamesg[d]
jamietanna let me know if you received a webmention. It's the first one created from my Micropub client to be sent to someone else.
#
jamietanna
capjamesg[d] I did receive it, yes!
tetov-irc joined the channel
#
Loqi
woot
nertzy and Ramon[d] joined the channel
#
Zegnat
capjamesg[d]: for comparison, it might be interesting to check https://github.com/aaronpk/Teacup and how it shapes the entries it posts. That is another drink tracker for Micropub
#
Loqi
[aaronpk] Teacup: β˜•οΈ Teacup is a simple Micropub app for tracking what you eat and drink
#
Zegnat
Just to test, I just hit the Coffee button in Teacup. This is the entry that got through to the Micropub server: https://sink.zegnat.net/1woTRq6fZm7t7jnm5eITiKWsAxY
joshproehl joined the channel
#
capjamesg[d]
Zegnat that is super helpful!
[grantcodes], [KevinMarks], [fluffy], [schmarty], KartikPrabhu, Seirdy, shoesNsocks, hendursaga, tetov-irc, jeremycherfas and capablecable[d] joined the channel