Diaspora: Support account migration

This commit is contained in:
Michael 2017-10-13 09:22:05 +00:00
parent 6a7b3f19ae
commit 09020192d6
4 changed files with 72 additions and 20 deletions

View file

@ -149,7 +149,8 @@ function notifier_run(&$argv, &$argc){
$relocate = true;
$uid = $item_id;
$recipients_relocate = q("SELECT * FROM contact WHERE uid = %d AND self = 0 AND network = '%s'" , intval($uid), NETWORK_DFRN);
$recipients_relocate = q("SELECT * FROM `contact` WHERE `uid` = %d AND NOT `self` AND `network` IN ('%s', '%s')",
intval($uid), NETWORK_DFRN, NETWORK_DIASPORA);
} else {
// find ancestors
$r = q("SELECT * FROM `item` WHERE `id` = %d AND visible = 1 AND moderated = 0 LIMIT 1",