mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:10:11 +00:00
Issue 6282: Update the contact data regularly (including the network)
This commit is contained in:
parent
f13b8f8ec4
commit
c359c162a7
5 changed files with 87 additions and 74 deletions
|
@ -2370,7 +2370,7 @@ class Item extends BaseObject
|
|||
$update = (!$arr['private'] && ((defaults($arr, 'author-link', '') === defaults($arr, 'owner-link', '')) || ($arr["parent-uri"] === $arr["uri"])));
|
||||
|
||||
// Is it a forum? Then we don't care about the rules from above
|
||||
if (!$update && ($arr["network"] == Protocol::DFRN) && ($arr["parent-uri"] === $arr["uri"])) {
|
||||
if (!$update && in_array($arr["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN]) && ($arr["parent-uri"] === $arr["uri"])) {
|
||||
if (DBA::exists('contact', ['id' => $arr['contact-id'], 'forum' => true])) {
|
||||
$update = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue