Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

+3 -13
View File
@@ -33,6 +33,7 @@ use IPS\Http\Request\Exception;
use IPS\Http\Url;
use IPS\Http\Url\Exception as UrlException;
use IPS\Image;
use IPS\IPS;
use IPS\Member;
use IPS\Node\Model;
use IPS\Settings;
@@ -602,20 +603,9 @@ class Import extends Model
'rss_imported_import_id' => $this->id
), TRUE );
if ( $this->auto_follow )
if ( $this->auto_follow and IPS::classUsesTrait( $item, Content\Followable::class ) )
{
Db::i()->insert( 'core_follow', array(
'follow_id' => md5( $class::$application . ';' . $followArea . ';' . $item->$idColumn . ';' . $member->member_id ),
'follow_app' => $class::$application,
'follow_area' => $followArea,
'follow_rel_id' => $item->$idColumn,
'follow_member_id' => $member->member_id,
'follow_is_anon' => 0,
'follow_added' => time(),
'follow_notify_do' => 1,
'follow_notify_freq' => 'immediate',
'follow_visible' => 1,
) );
$item->follow( 'immediate', true, $member );
}
/* Re-index to pick up any changes to hidden, etc */