2017-10-30 UTC
[tantek], tantek, [miklb], [shurcool], [kevinmarks], mapkyca, Abot9, jeremycherfas, aaronpk, Loqi_, raretrack and cweiske joined the channel
# 21:22 cweiske Hi. What's the best way to extract the slug from a full post URL in known?
# 21:22 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.
# 21:25 mapkyca @cweiske all slugs are attached to the ->slug attribute on the object itself
# 21:26 cweiske previously (a year ago) getByUUID() worked, because for posts the uuid was the URL
# 21:27 cweiske now I have to use getBySlug(), but have to get the slug first. micropub clients send the full post URL though
# 21:27 mapkyca Yeah, there's no getbyurl ... the old behaviour of the uuid was unsafe
# 21:28 mapkyca not sure if you can use the pagehandler regex in reverse, don't think thats natively supported
# 21:29 cweiske are slashes allowed in slugs? if not, I could simply explode the string
# 21:34 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
# 21:35 [cleverdevil] I've had it on my list of things to tackle for a long while, but I've been slammed with work.
tantek joined the channel