<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;
-use Friendica\Model\Notify\Type;
use Friendica\Network\Probe;
use Friendica\Protocol\Activity;
use Friendica\Util\DateTimeFormat;
DBA::insert('intro', $fields);
notification([
- 'type' => Type::SUGGEST,
- 'notify_flags' => $owner['notify-flags'],
- 'language' => $owner['language'],
- 'to_name' => $owner['name'],
- 'to_email' => $owner['email'],
- 'uid' => $owner['uid'],
- 'item' => $suggest,
- 'link' => DI::baseUrl().'/notifications/intros',
- 'source_name' => $from_contact['name'],
- 'source_link' => $from_contact['url'],
- 'source_photo' => $from_contact['photo'],
- 'verb' => Activity::REQ_FRIEND,
- 'otype' => 'intro'
+ 'type' => Notification\Type::SUGGEST,
+ 'otype' => Notification\ObjectType::INTRO,
+ 'verb' => Activity::REQ_FRIEND,
+ 'uid' => $owner['uid'],
+ 'cid' => $from_contact['uid'],
+ 'item' => $suggest,
+ 'link' => DI::baseUrl().'/notifications/intros',
]);
return true;