Fixes for Idle notifications
This commit is contained in:
parent
a0b6df31f0
commit
95b6058020
@ -44,9 +44,10 @@ class AbsentNodes extends Echomails
|
||||
|
||||
Log::info(sprintf('%s:+ Creating NODE ABSENT echomail in [%s]',self::LOGKEY,$echoarea->name));
|
||||
|
||||
$our = our_address($echoarea->domain)->last();
|
||||
$o->to = 'All';
|
||||
$o->subject = 'Status changes for nodes';
|
||||
$o->fftn_id = ($x=our_address($echoarea->domain)->last())->id;
|
||||
$o->fftn_id = $our->id;
|
||||
$o->kludges->put('CHRS:','CP437 2');
|
||||
|
||||
// Message
|
||||
@ -95,7 +96,7 @@ class AbsentNodes extends Echomails
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->set_tagline = 'When life gives you lemons, freeze them and throw them back.';
|
||||
$o->set_origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$x->ftn4d);
|
||||
$o->set_origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$our->ftn4d);
|
||||
|
||||
$o->save();
|
||||
|
||||
|
@ -45,8 +45,9 @@ class Test extends Echomails
|
||||
|
||||
Log::info(sprintf('%s:+ Creating TEST echomail in [%s]',self::LOGKEY,$echoarea->name));
|
||||
|
||||
$our = our_address($this->mo->fftn);
|
||||
$o->to = $this->mo->from;
|
||||
$o->fftn_id = ($x=our_address($this->mo->fftn))->id;
|
||||
$o->fftn_id = $our->id;
|
||||
$o->replyid = $this->mo->msgid;
|
||||
$o->subject = 'Test Reply';
|
||||
$o->kludges->put('CHRS:',$this->mo->kludges->get('chrs') ?: 'CP437 2');
|
||||
@ -74,7 +75,7 @@ class Test extends Echomails
|
||||
|
||||
$o->msg = $msg->render();
|
||||
$o->set_tagline = 'I ate a clock yesterday, it was very time-consuming.';
|
||||
$o->set_origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$x->ftn4d);
|
||||
$o->set_origin = sprintf('%s (%s)',Setup::PRODUCT_NAME,$our->ftn4d);
|
||||
|
||||
$o->save();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user