Version 4.7.13

This commit is contained in:
Neo committed 2025-12-19 16:14:56 -08:00
1 parent fd22d99e69
commit 7124a02564
954 files changed
+29277 -59308

No files matched your search

@@ -106,6 +106,12 @@ class _forums extends \IPS\Dispatcher\Controller
}
$getReactions = $getFirstComment = $getFollowerCount = (boolean) ( \IPS\forums\Forum::getMemberListView() === 'snippet' );
/* Do view update now - we want to include redirect forums */
if ( !\IPS\Request::i()->isAjax() )
{
$forum->updateViews();
}
/* Redirect? */
if ( $forum->redirect_url )
@@ -596,6 +596,13 @@ class _topic extends \IPS\Content\Controller
)
), \IPS\Output::i()->jsonLd['topic'] );
/* Add og:image meta tags */
if( count( $file = $topic->imageAttachments(1 ) ) )
{
$object = \IPS\File::get( 'core_Attachment', $file[0]['attach_location'] );
\IPS\Output::i()->metaTags['og:image'] = (string) $object->url->setScheme( ( mb_substr( \IPS\Settings::i()->base_url, 0, 5 ) === 'https' ) ? 'https' : 'http' );
}
/* Set default search to this topic */
\IPS\Output::i()->defaultSearchOption = array( 'forums_topic', 'forums_topic_el' );