Toot

Written by Jan Boddez on 2025-01-14 at 20:11

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 | More toots from janboddez@indieweb.social

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113828526944040794
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
219.729823 milliseconds
Gemini-to-HTML Time
0.782239 milliseconds

This content has been proxied by September (3851b).