Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

+19 -1
View File
@@ -122,8 +122,14 @@ trait ItemTopic
$title = $this->getTopicTitle();
\IPS\Member::loggedIn()->language()->parseOutputForDisplay( $title );
$topic->title = $title;
$topic->topic_archive_status = \IPS\forums\Topic::ARCHIVE_EXCLUDE;
$topic->topic_archive_status = \IPS\forums\Topic::ARCHIVE_EXCLUDE;
$topic->save();
if( $this->isAnonymous() )
{
$topic->setAnonymous( TRUE, $this->author );
}
$topic->markRead( $this->author() );
if ( \IPS\Settings::i()->tags_enabled )
{
@@ -134,10 +140,22 @@ trait ItemTopic
$content = $this->getTopicContent();
\IPS\Member::loggedIn()->language()->parseOutputForDisplay( $content );
$post = \IPS\forums\Topic\Post::create( $topic, $content, TRUE, NULL, NULL, $this->author() );
if( $this->isAnonymous() )
{
$post->setAnonymous( TRUE, $this->author );
}
$topic->topic_firstpost = $post->pid;
$topic->save();
\IPS\Content\Search\Index::i()->index( $post );
/* Send notifications */
if ( !$topic->isFutureDate() AND !$topic->hidden() )
{
$topic->sendNotifications();
}
/* Update file */
$this->$column = $topic->tid;
$this->save();