Allow for origin/tagline/tearline can have UTF8 chars, show # messages in packets
This commit is contained in:
@@ -22,14 +22,17 @@ use App\Traits\EncodeUTF8;
|
||||
*/
|
||||
class Message extends FTNBase
|
||||
{
|
||||
private const LOGKEY = 'FM-';
|
||||
|
||||
use EncodeUTF8;
|
||||
|
||||
private const LOGKEY = 'FM-';
|
||||
|
||||
private const cast_utf8 = [
|
||||
'subject',
|
||||
'message',
|
||||
'message_src',
|
||||
'origin',
|
||||
'tearline',
|
||||
'tagline',
|
||||
];
|
||||
|
||||
// Single value kludge items
|
||||
|
@@ -445,7 +445,7 @@ class Packet extends FTNBase implements \Iterator, \Countable
|
||||
|
||||
// This shouldnt happen
|
||||
if ($e || $ao->exists) {
|
||||
Log::error(sprintf('%s:! Attempting to create address [%s], but it exists?',self::LOGKEY,$msg->fboss));
|
||||
Log::error(sprintf('%s:! Unexpected error attempting to create address [%s]',self::LOGKEY,$msg->fboss));
|
||||
$this->errors->push($msg);
|
||||
return;
|
||||
}
|
||||
|
@@ -133,8 +133,10 @@ final class Receive extends Item
|
||||
break;
|
||||
}
|
||||
|
||||
Log::info(sprintf('%s: - Packet has [%d] messages',self::LOGKEY,$po->count()));
|
||||
|
||||
// Queue messages if there are too many in the packet.
|
||||
if ($queue = ($po->count() > config('app.queue_msgs')))
|
||||
$queue = ($po->count() > config('app.queue_msgs'));
|
||||
Log::info(sprintf('%s: - Messages will be sent to the queue for processing',self::LOGKEY));
|
||||
|
||||
foreach ($po as $msg) {
|
||||
|
Reference in New Issue
Block a user