mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 00:45:14 +02:00
The "item-activity" is removed
This commit is contained in:
parent
609ae1869c
commit
ba9cf32f36
7 changed files with 55 additions and 191 deletions
|
@ -30,6 +30,7 @@ use Friendica\Model\Contact;
|
|||
use Friendica\Model\Group;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Notify\Type;
|
||||
use Friendica\Model\Verb;
|
||||
use Friendica\Protocol\Activity;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Temporal;
|
||||
|
@ -135,8 +136,8 @@ function ping_init(App $a)
|
|||
|
||||
$notifs = ping_get_notifications(local_user());
|
||||
|
||||
$condition = ["`unseen` AND `uid` = ? AND `contact-id` != ? AND (`activity` != ? OR `activity` IS NULL)",
|
||||
local_user(), local_user(), Item::activityToIndex(Activity::FOLLOW)];
|
||||
$condition = ["`unseen` AND `uid` = ? AND `contact-id` != ? AND `vid` != ?",
|
||||
local_user(), local_user(), Verb::getID(Activity::FOLLOW)];
|
||||
$fields = ['id', 'parent', 'verb', 'author-name', 'unseen', 'author-link', 'author-avatar', 'contact-avatar',
|
||||
'network', 'created', 'object', 'parent-author-name', 'parent-author-link', 'parent-guid', 'wall', 'activity'];
|
||||
$params = ['order' => ['received' => true]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue