avatar generator
All checks were successful
Deploy / deploy (push) Successful in 1m39s

This commit is contained in:
2026-07-27 01:36:24 +02:00
parent e274e07f45
commit 708830fe0a
11 changed files with 26 additions and 18 deletions

View File

@@ -3,6 +3,8 @@ declare(strict_types=1);
namespace App;
use App\Avatar\Lorelei;
final class Community
{
private ?array $forumStructure = null;
@@ -151,7 +153,7 @@ final class Community
$where = $conditions ? ('AND ' . implode(' AND ', $conditions)) : '';
$avatarSelect = $this->hasColumn('user_profiles', 'avatar_outfit_color')
? ', ' . Avatar::selectColumns('p')
? ', ' . Lorelei::selectColumns('p')
: '';
$sql = "SELECT ft.id, ft.title, ft.body, ft.created_at, ft.updated_at,
u.id as uid, u.created_at as user_created,
@@ -207,7 +209,7 @@ final class Community
{
$select = 'ft.*, p.display_name';
if ($this->hasColumn('user_profiles', 'avatar_outfit_color')) {
$select .= ', ' . Avatar::selectColumns('p');
$select .= ', ' . Lorelei::selectColumns('p');
}
$join = '';
if ($this->hasColumn('forum_threads', 'board_id') && $this->hasTable('forum_boards') && $this->hasTable('forum_categories')) {
@@ -227,7 +229,7 @@ final class Community
{
$select = 'fp.*, p.display_name';
if ($this->hasColumn('user_profiles', 'avatar_outfit_color')) {
$select .= ', ' . Avatar::selectColumns('p');
$select .= ', ' . Lorelei::selectColumns('p');
}
if ($this->hasColumn('forum_posts', 'highlighted_at')) {
$select .= ', hp.display_name AS highlighted_by_name';