This commit is contained in:
@@ -150,7 +150,7 @@ final class Community
|
||||
|
||||
$where = $conditions ? ('AND ' . implode(' AND ', $conditions)) : '';
|
||||
|
||||
$avatarSelect = $this->hasColumn('user_profiles', 'avatar_skin_tone')
|
||||
$avatarSelect = $this->hasColumn('user_profiles', 'avatar_outfit_color')
|
||||
? ', ' . Avatar::selectColumns('p')
|
||||
: '';
|
||||
$sql = "SELECT ft.id, ft.title, ft.body, ft.created_at, ft.updated_at,
|
||||
@@ -206,7 +206,7 @@ final class Community
|
||||
public function getThread(int $id): ?array
|
||||
{
|
||||
$select = 'ft.*, p.display_name';
|
||||
if ($this->hasColumn('user_profiles', 'avatar_skin_tone')) {
|
||||
if ($this->hasColumn('user_profiles', 'avatar_outfit_color')) {
|
||||
$select .= ', ' . Avatar::selectColumns('p');
|
||||
}
|
||||
$join = '';
|
||||
@@ -226,7 +226,7 @@ final class Community
|
||||
public function listPosts(int $threadId): array
|
||||
{
|
||||
$select = 'fp.*, p.display_name';
|
||||
if ($this->hasColumn('user_profiles', 'avatar_skin_tone')) {
|
||||
if ($this->hasColumn('user_profiles', 'avatar_outfit_color')) {
|
||||
$select .= ', ' . Avatar::selectColumns('p');
|
||||
}
|
||||
if ($this->hasColumn('forum_posts', 'highlighted_at')) {
|
||||
|
||||
Reference in New Issue
Block a user