use Friendica\Database\DBA;
use Friendica\Model\Contact;
use Friendica\Model\Item;
+use Friendica\Protocol\Activity;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Proxy as ProxyUtils;
use Friendica\Util\Temporal;
// Transform the different types of notification in an usable array
switch ($it['verb']) {
- case ACTIVITY_LIKE:
+ case Activity::LIKE:
$notif = [
'label' => 'like',
'link' => System::baseUrl(true) . '/display/' . $it['parent-guid'],
];
break;
- case ACTIVITY_DISLIKE:
+ case Activity::DISLIKE:
$notif = [
'label' => 'dislike',
'link' => System::baseUrl(true) . '/display/' . $it['parent-guid'],
];
break;
- case ACTIVITY_ATTEND:
+ case Activity::ATTEND:
$notif = [
'label' => 'attend',
'link' => System::baseUrl(true) . '/display/' . $it['parent-guid'],
];
break;
- case ACTIVITY_ATTENDNO:
+ case Activity::ATTENDNO:
$notif = [
'label' => 'attendno',
'link' => System::baseUrl(true) . '/display/' . $it['parent-guid'],
];
break;
- case ACTIVITY_ATTENDMAYBE:
+ case Activity::ATTENDMAYBE:
$notif = [
'label' => 'attendmaybe',
'link' => System::baseUrl(true) . '/display/' . $it['parent-guid'],
];
break;
- case ACTIVITY_FRIEND:
+ case Activity::FRIEND:
if (!isset($it['object'])) {
$notif = [
'label' => 'friend',