Move Notify::TYPE_INTRO
This commit is contained in:
parent
97b6f6b3b3
commit
cfd50f9abb
8 changed files with 24 additions and 8 deletions
|
|
@ -23,6 +23,7 @@ use Friendica\Database\DBA;
|
|||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Notify\Type;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Module\Security\Login;
|
||||
|
|
@ -552,7 +553,7 @@ function dfrn_request_content(App $a)
|
|||
|
||||
if (!$auto_confirm) {
|
||||
notification([
|
||||
'type' => NOTIFY_INTRO,
|
||||
'type' => Type::INTRO,
|
||||
'notify_flags' => $r[0]['notify-flags'],
|
||||
'language' => $r[0]['language'],
|
||||
'to_name' => $r[0]['username'],
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ use Friendica\DI;
|
|||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Notify\Type;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Temporal;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
|
|
@ -403,7 +404,7 @@ function ping_get_notifications($uid)
|
|||
AND NOT (`notify`.`type` IN (%d, %d))
|
||||
AND $seensql `notify`.`seen` ORDER BY `notify`.`date` $order LIMIT %d, 50",
|
||||
intval($uid),
|
||||
intval(NOTIFY_INTRO),
|
||||
intval(Type::INTRO),
|
||||
intval(NOTIFY_MAIL),
|
||||
intval($offset)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ use Friendica\DI;
|
|||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Notify\Type;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Module\Security\Login;
|
||||
use Friendica\Protocol\Email;
|
||||
|
|
@ -1229,7 +1230,7 @@ function settings_content(App $a)
|
|||
|
||||
'$h_not' => DI::l10n()->t('Notification Settings'),
|
||||
'$lbl_not' => DI::l10n()->t('Send a notification email when:'),
|
||||
'$notify1' => ['notify1', DI::l10n()->t('You receive an introduction'), ($notify & NOTIFY_INTRO), NOTIFY_INTRO, ''],
|
||||
'$notify1' => ['notify1', DI::l10n()->t('You receive an introduction'), ($notify & Type::INTRO), NOTIFY_INTRO, ''],
|
||||
'$notify2' => ['notify2', DI::l10n()->t('Your introductions are confirmed'), ($notify & NOTIFY_CONFIRM), NOTIFY_CONFIRM, ''],
|
||||
'$notify3' => ['notify3', DI::l10n()->t('Someone writes on your profile wall'), ($notify & NOTIFY_WALL), NOTIFY_WALL, ''],
|
||||
'$notify4' => ['notify4', DI::l10n()->t('Someone writes a followup comment'), ($notify & NOTIFY_COMMENT), NOTIFY_COMMENT, ''],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue