Merge branch 'notify-shared' of github.com:annando/friendica into notify-shared
This commit is contained in:
commit
0e2dbd8fa3
1 changed files with 2 additions and 2 deletions
|
@ -207,12 +207,12 @@ class UserItem
|
||||||
*/
|
*/
|
||||||
private static function checkShared(array $item, int $uid)
|
private static function checkShared(array $item, int $uid)
|
||||||
{
|
{
|
||||||
// Only sheck on starting posts and reshare ("announce") activities, otherwise return
|
// Only check on original posts and reshare ("announce") activities, otherwise return
|
||||||
if (($item['gravity'] != GRAVITY_PARENT) && ($item['verb'] != Activity::ANNOUNCE)) {
|
if (($item['gravity'] != GRAVITY_PARENT) && ($item['verb'] != Activity::ANNOUNCE)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the contact had posted or shared something directly
|
// Check if the contact posted or shared something directly
|
||||||
if (DBA::exists('contact', ['id' => $item['contact-id'], 'notify_new_posts' => true])) {
|
if (DBA::exists('contact', ['id' => $item['contact-id'], 'notify_new_posts' => true])) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue