Remove poke feature

This commit is contained in:
Hypolite Petovan 2022-08-09 13:21:42 -04:00
parent 119da8b58b
commit 4a885a13a6
27 changed files with 46 additions and 526 deletions

View file

@ -1041,7 +1041,6 @@ class Contact
$pm_url = '';
$status_link = '';
$photos_link = '';
$poke_link = '';
if ($uid == 0) {
$uid = local_user();
@ -1084,10 +1083,6 @@ class Contact
$pm_url = DI::baseUrl() . '/message/new/' . $contact['id'];
}
if (($contact['network'] == Protocol::DFRN) && !$contact['self'] && empty($contact['pending'])) {
$poke_link = 'contact/' . $contact['id'] . '/poke';
}
$contact_url = DI::baseUrl() . '/contact/' . $contact['id'];
$posts_link = DI::baseUrl() . '/contact/' . $contact['id'] . '/conversations';
@ -1122,7 +1117,6 @@ class Contact
'network' => [DI::l10n()->t('Network Posts') , $posts_link , false],
'edit' => [DI::l10n()->t('View Contact') , $contact_url , false],
'pm' => [DI::l10n()->t('Send PM') , $pm_url , false],
'poke' => [DI::l10n()->t('Poke') , $poke_link , false],
'follow' => [DI::l10n()->t('Connect/Follow'), $follow_link , true],
'unfollow'=> [DI::l10n()->t('UnFollow') , $unfollow_link , true],
];

View file

@ -1085,11 +1085,7 @@ class Item
// Check for hashtags in the body and repair or add hashtag links
$item['body'] = self::setHashtags($item['body']);
if (stristr($item['verb'], Activity::POKE)) {
$notify_type = Delivery::POKE;
} else {
$notify_type = Delivery::POST;
}
$notify_type = Delivery::POST;
// Filling item related side tables
if (!empty($item['attach'])) {

View file

@ -40,7 +40,7 @@ class Type
const SUGGEST = 32;
/** @var int Notification about being tagged in a post */
const TAG_SELF = 128;
/** @var int Notification about getting poked/prodded/etc. */
/** @var int Notification about getting poked/prodded/etc. (Obsolete) */
const POKE = 512;
/** @var int Notification about either a contact had posted something directly or the contact is a mentioned forum */
const SHARE = 1024;