#known 2017-10-30

2017-10-30 UTC
[tantek], tantek, [miklb], [shurcool], [kevinmarks], mapkyca, Abot9, jeremycherfas, aaronpk, Loqi_, raretrack and cweiske joined the channel
#
cweiske
Hi. What's the best way to extract the slug from a full post URL in known?
#
Loqi
cweiske: jeremycherfas left you a message on 2017-08-18 at 1:38pm UTC: Thanks for tip on using your Known video plugin. Will try that when I have another video to upload.
#
mapkyca
@cweiske all slugs are attached to the ->slug attribute on the object itself
#
cweiske
I have an URL like http://known.bogo/2017/test-14 and want to extract the slug from that url
#
cweiske
and Entity does not have a getByUrl() method
#
cweiske
only getBySlug()
#
cweiske
previously (a year ago) getByUUID() worked, because for posts the uuid was the URL
#
cweiske
this changed somewhere in the last year
#
cweiske
s/where/time/
#
cweiske
now I have to use getBySlug(), but have to get the slug first. micropub clients send the full post URL though
#
mapkyca
Yeah, there's no getbyurl ... the old behaviour of the uuid was unsafe
#
mapkyca
not sure if you can use the pagehandler regex in reverse, don't think thats natively supported
#
cweiske
are slashes allowed in slugs? if not, I could simply explode the string
#
mapkyca
no, I don't believe they are
#
cweiske
just tried it, they get stripped out
#
cweiske
ok, then I can use that
#
cweiske
I wanted to write a blog post about adding comments and likes to known posts via micropub and saw that this was broken :/
[cleverdevil] joined the channel
#
[cleverdevil]
The micropub implementation could really use some love ?
#
[cleverdevil]
I've had it on my list of things to tackle for a long while, but I've been slammed with work.
#
[cleverdevil]
Also, I'm still pretty low on PHP knowledge.
tantek joined the channel