#microformats 2024-06-11
2024-06-11 UTC
[fluffy], {{lifeofpablo}}, barnaby, [snarfed], eitilt, to2ds, barnabywalters, Loqi, [KevinMarks], Guest6 and robalex joined the channel
# robalex Question about rel-me and Mastodon link verification. I noticed hachyderm was having verified accounts link to this page, which has a rel=me for each approved profile.
# robalex I think identity consolidation would cause each of the mastodon profiles to be treated as having a common identity, but these are clearly different corporations. Am I understanding rel-me identity consolidation correctly?
# robalex (I've been writing a rel-me crawler and found a bunch of mastodon accounts grouped because of this page)
# [snarfed] huh, odd. looks like that page on the web is https://community.hachyderm.io/approved/
barnaby joined the channel
# [KevinMarks] They should give them each their own profile page. There were other mastodon verification services that did that (eg for journalists)
barnaby joined the channel
robalex joined the channel
# robalex thanks!
[mattl] and [jacky] joined the channel
gRegor and [Al_Abut] joined the channel
# [snarfed] [tantek] (from #indieweb-dev) sure! when I enter https://snarfed.org/ into the form on https://h2vx.com/vcf/ and click Download, the POST to /vcf/get-contact.php 500s
# [tantek] confirmed. can you file an issue so I don't forget? it may take me a while to get to 😕 https://github.com/microformats/h2vx.com/issues
# [Joe_Crawford] I see a fair number of presumptions of http vs https that might be tripping points
# [Joe_Crawford] Is the `tidy` class available to php?
# [Joe_Crawford] made it work. making a PR
# [Joe_Crawford] https://github.com/microformats/h2vx.com/pull/9 FWIW
# [Joe_Crawford] yeah, my local install of 8 has it too. I had no idea tidy was hidden in amongst the php code.
# [Joe_Crawford] PHP'S GOT EVERYTHING
# [Joe_Crawford] and let me say times like these I'm so happy I can do `php -S 127.0.0.1:8000` to run a webserver. It's still magic to me.
# [Joe_Crawford] Derp. No. I removed cassis.js from the php side. Just made a php file and did a require on it.
# [Joe_Crawford] I have no illusions it's what you *want* to happen. But my brain is *make it do the thing* not _let's preserve the intent_
# [Joe_Crawford] `ob_start();`
# [Joe_Crawford] `include 'cassis.js';`
# [Joe_Crawford] `ob_end_clean();` -- no longer does what it once did. maybe it should be `require` or `require_once` ? no idear
# [Joe_Crawford] the ob_start and get clean is about buffering output
# [Joe_Crawford] I'd want to see what your php error logs showed
# [Joe_Crawford] https://www.php.net/manual/en/function.include.php `include()` ought to parse whatever is passed as php. But for some reason it didn't work.
# [tantek] [Joe_Crawford] when you say you "Just made a php file", is that not the cassis.php from https://github.com/tantek/cassis/blob/main/cassis.php ?
# [Joe_Crawford] no I copied cassis.js into cassis.php
# [Joe_Crawford] I also removed anything that was bare html that might output. Just plopped in a `<?php`
# [Joe_Crawford] _`/* if you see this in the browser, you need to wrap your include of cassis.js with calls to ob_start and ob_end_clean, e.g. use the following in your PHP: ob_start(); include 'cassis.js'; ob_end_clean(); <?php`_
# [Joe_Crawford] It amazes me that that could work
# [Joe_Crawford] Because I don't think like you Tantek. 🙂 To me, a file ought to be either a JS file or a PHP file or I get dizzy.
# [Joe_Crawford] But I'm glad it worked! 🙂
# [Joe_Crawford] I appreciate the linguistic novelty.
# [Joe_Crawford] ```function string($n) {
# [Joe_Crawford] if (js()) {
# [Joe_Crawford] if (typeof($n)=="number")
# [Joe_Crawford] return Number($n).toString();
# [Joe_Crawford] else if (typeof($n)=="undefined")
# [Joe_Crawford] return "";
# [Joe_Crawford] else return $n.toString();
# [Joe_Crawford] }
# [Joe_Crawford] else
{ return "" . $n; }
# [Joe_Crawford] }```
# [Joe_Crawford] Let's add Perl support while we're in there.
# [Joe_Crawford] [tantek] Added a commit to my PR to pull from Cassis v0.1
# [Joe_Crawford] cut and paste, that is
# [Joe_Crawford] I *do* like the idea of creating, say, an Interface that 2 files in different languages ought to adhere to. I think a foo.js and a foo.php (and a foo.pl!) that all referenced a common file that defined what public functions classes and methods ought to exist in there might be neat. Heck, might already exist.