Version 5.0.0 beta 8

This commit is contained in:
Neo committed 2025-12-19 17:30:12 -08:00
1 parent 54d5dcd0a0
commit 214f649f1d
483 files changed
+35354 -33568

No files matched your search

+12 -1
View File
@@ -545,6 +545,7 @@ class Forum extends Model implements Permissions
if ( $member->member_id )
{
$updatedItem->last_poster_name = $member->name;
$updatedItem->last_poster_anon = 0;
}
else
{
@@ -795,9 +796,19 @@ class Forum extends Model implements Permissions
$lastPost['last_title'] = null;
}
$author = null;
if ( $lastPost['last_poster_anon'] )
{
$author = Member::loggedIn()->language()->addToStack( "post_anonymously_placename" );
}
else
{
$author = ! empty( $lastPost['last_poster_id'] ) ? $lastPost['last_poster_id'] : ( $lastPost['last_poster_name'] ?? Member::loggedIn()->language()->addToStack( "guest" ) );
}
$results[ $lastPostTime ] = array(
'author' => null,
'_author' => ! empty( $lastPost['last_poster_id'] ) ? $lastPost['last_poster_id'] : ( $lastPost['last_poster_name'] ?? '' ),
'_author' => $author,
'topic_url' => Url::internal( "app=forums&module=forums&controller=topic&id={$lastPost['last_id']}", 'front', 'forums_topic', array( $lastPost['seo_last_title'] ) ),
'topic_title' => $lastPost['last_title'],
'date' => $lastPostTime,