Will likely revisit these later, got a lot more cleaning up to do first.
Not that anybody cares, but hey, here we are.
=> More informations about this toot | View the thread
Been toying with this silly like/repost “popover facepile.”
[#]indieweb
=> More informations about this toot | View the thread
… and the issue somehow also doesn’t occur when I save the originals first and only then “load them into” Intervention Image. (I used to just download/cache the binary data in memory, and only save the resized image to disk. Looks like I won’t be doing that anymore.) But, how weird is that?
=> More informations about this toot | View the thread
I used Laravel’s HTTP client to download Mastodon avatars (I’m building a Laravel-based CMS with ActivityPub support). Not sure why; because it’s easier to send along headers and even sign requests than if I used file_get_contents()
, I suppose.
Anyhoo, I then resize/crop these images using Intervention Image (for compatibility with both Imagick and GD, without having to write duplicate code).
So, the resized images are often corrupt, but only when they’re PNGs …
=> More informations about this toot | View the thread
(Mastodon does a fairly okay job without indenting, but mostly because it lets you select a single reply and then hides whatever’s not in that thread. Might look into it later, but I’d rather not use JS or anything.)
=> More informations about this toot | View the thread
Actually indented replies (i.e., lists within lists) are the clearest but don’t look great on mobile. A long reply thread will very soon run out of “horizontal space.”
So I instead collapsed the lists into one and went the “reply-lines-only” route. Way less clear when you’ve got replies branching off in all directions … but better when it comes to long threads.
Back in the day, a lot of blogs didn’t even do multi-level replies. You’d just @-mention a previous commenter and hope for the best.
=> More informations about this toot | View the thread
Oh, no, posted a link to my site. Now it’s going to get hammered with Mastodon requests.
/s
😉
=> More informations about this toot | View the thread
Playing with nested comments ... from the Fediverse. https://jan.boddez.net/notes/47deb8af37
I’ll fix the avatars some other time.
=> More informations about this toot | View the thread
And a gazillion other things that nobody in this whole wide world cares about.
But, hey, if you wanted, purely hypothetically, you could totes self-host this and develop your own “theme” only, in simple PHP/Blade, and keep everything else as is, and it should “just work.”
=> More informations about this toot | View the thread
Still have to fix how nested comments are displayed ... Tomorrow.
=> More informations about this toot | View the thread
And then I can loop over them like I do for “regular” comments, or simply, like in the screenshot above, do something like {{ $entry->likes->count() }}
.
=> More informations about this toot | View the thread
My IndieBlocks plugin for WordPress had (or, well, still has) a block pattern or something that unlocks this type of display, rather than the default “facepile.” Come to think of it, that version could be unreleased, still.
Either way, in my Laravel app’s Entry
model, I simply have:
public function likes(): HasMany { return $this->hasMany(Comment::class) ->where('type', 'like'); }
And so on. In other words, likes are just comments, with a type of like
.
=> More informations about this toot | View the thread
Once more experimenting with likes and reposts and how they’re displayed.
A facepile on hover would be kinda cool, I guess, but this’ll have to do for now.
(#Laravel makes this so easy.)
=> More informations about this toot | View the thread
I may look into TinyMCE or a similar editor, and custom dialogs for it. https://www.tiny.cloud/docs/tinymce/latest/dialog-examples/
Should be possible to insert a link complete with microformats, and possibly even some reply context.
=> More informations about this toot | View the thread
I probably won’t use this very often. My custom CMS doesn’t do (custom) blocks, so adding microformats is very much a manual thing. Plus, who really “reposts” things (verbatim) on their own site?
I mean, maybe at one point the IndieWeb community was really into replicating every single existing “social media feature,” but, uhm, it’s probably okay to have more “opinionated”—simpler—alternatives, too.
Guess the “real” benefit, if any, of ActivityPub support is those “Fediverse comments.”
=> More informations about this toot | View the thread
Not entirely sure why this boost doesn’t seem to show for me (i.e., this account) on this here server – my m.s test account definitely did see it pop up on its home timeline – but I’m not going to worry about it.
=> More informations about this toot | View the thread
Ha! I’m again able to have my silly website “boost” “Fediverse posts.”
I mark these up using #microformats2 – which after parsing look like this: https://pin13.net/mf2/?url=https%3A%2F%2Fjan.boddez.net%2Fnotes%2F786b644f01 – and have my “ActivityPub sender” pick that up, so that instead of a “Create” activity, it POSTs an “Announce.”
I’d previously implemented this as an addon for #WordPress’ #ActivityPub plugin and now have it working for my #Laravel site, too.
[#]IndieWeb
=> More informations about this toot | View the thread
I recently bought a JBL Bar 300, which, much to my frustration, would randomly cease to work with our somewhat older Philips TV.
Anyway, I can now say that covering pin #13 of the HDMI cable coming from our tiny media player—a Xiaomi Mi Box S—with a tiny piece of painter’s tape 100% solved that issue. (Even with all of the Mi Box’s CEC settings disabled, it would switch off together with the TV, so I’m going to guess CEC was never fully off.)
https://bddz.be/wpy
=> More informations about this toot | View the thread
Same for reposts, which will have to be “translated” to Announce activities. And so on.
Everything I had in my WordPress “add-on for ActivityPub,” basically.
Most other things, like posting Create or Update activities with “just” the post’s content, that stuff should be sufficiently generic to abstract away into a library.
And all the WebFinger magic, etc.
=> More informations about this toot | View the thread
Semi looking forward to Dansup’s library, although I’m … a little worried it’s slightly more complicated than just tacking that on. But we’ll see. I could have been reinventing the wheel here, before it’s been invented. Or rather, released.
Like, I eventually want to map certain “IndieWeb post types,” like replies, to “proper” ActivityPub replies. Which means running an mf2 parser on my post content and setting an inReplyTo
property if applicable. So it’s a bit more than “mere syndication.”
=> More informations about this toot | View the thread
=> This profile with reblog | Go to janboddez@indieweb.social account This content has been proxied by September (3851b).Proxy Information
text/gemini