Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -11,6 +11,9 @@
|
||||
namespace IPS\core\Messenger;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use IPS\core\Alerts\Alert;
|
||||
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
@@ -60,6 +63,11 @@ class _Conversation extends \IPS\Content\Item
|
||||
* @var bool
|
||||
*/
|
||||
public static bool $skipIndexNow = TRUE;
|
||||
|
||||
/**
|
||||
* @brief Check posts per day limits? Useful for things that use the content system, but aren't necessarily content themselves.
|
||||
*/
|
||||
public static $checkPostsPerDay = FALSE;
|
||||
|
||||
/**
|
||||
* Delete Record
|
||||
@@ -162,7 +170,7 @@ class _Conversation extends \IPS\Content\Item
|
||||
{
|
||||
$alert = \IPS\core\Alerts\Alert::load( \IPS\Request::i()->alert );
|
||||
|
||||
if( $alert->forMember( \IPS\Member::loggedIn() ) AND $alert->reply == 2 )
|
||||
if( $alert->forMember( \IPS\Member::loggedIn() ) AND $alert->reply == Alert::REPLY_REQUIRED )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
@@ -641,6 +649,7 @@ class _Conversation extends \IPS\Content\Item
|
||||
*/
|
||||
public static function rebuildMessageCounts( \IPS\Member $member )
|
||||
{
|
||||
/* @note SELECT_FROM_WRITE_SERVER: Avoid issue where the new message rows are on the writer, but not the reader */
|
||||
$total = \IPS\Db::i()->select( 'count(*)', 'core_message_topic_user_map', array( 'map_user_id=? AND map_user_active=1', $member->member_id ), NULL, NULL, NULL, NULL, \IPS\Db::SELECT_FROM_WRITE_SERVER )->first();
|
||||
$member->msg_count_total = $total;
|
||||
|
||||
|
||||
Reference in new issue
Block a user