[various] Move notification classes

This commit is contained in:
Hypolite Petovan 2021-01-23 15:36:36 -05:00
parent 21bb90f677
commit 00e8602892
3 changed files with 7 additions and 6 deletions

View file

@ -7,11 +7,12 @@
*
*
*/
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\Notify\Type;
use Friendica\Model\Notification;
function gnot_install() {
@ -79,6 +80,6 @@ function gnot_settings(&$a,&$s) {
function gnot_enotify_mail(&$a,&$b) {
if((! $b['uid']) || (! intval(DI::pConfig()->get($b['uid'], 'gnot','enable'))))
return;
if($b['type'] == Type::COMMENT)
if($b['type'] == Notification\Type::COMMENT)
$b['subject'] = DI::l10n()->t('[Friendica:Notify] Comment to conversation #%d', $b['parent']);
}