Item distribution is now done via the public post

This commit is contained in:
Michael 2018-04-24 13:21:25 +00:00
parent 7230cc0bed
commit 5cf745af44
4 changed files with 102 additions and 59 deletions

View file

@ -2773,6 +2773,10 @@ class DFRN
if ($posted_id) {
logger("Reply from contact ".$item["contact-id"]." was stored with id ".$posted_id, LOGGER_DEBUG);
IF ($item['uid'] == 0) {
Item::distribute($posted_id);
}
$item["id"] = $posted_id;
$r = q(
@ -2827,6 +2831,10 @@ class DFRN
logger("Item was stored with id ".$posted_id, LOGGER_DEBUG);
if ($item['uid'] == 0) {
Item::distribute($posted_id);
}
if (stristr($item["verb"], ACTIVITY_POKE)) {
self::doPoke($item, $importer, $posted_id);
}