Merge branch 'dev' into 'dev'

issues with image import to zot6 - wrong mid. Also label source project of...

See merge request hubzilla/core!1717
This commit is contained in:
Max Kostikov 2019-08-23 23:09:14 +02:00
commit 4dbaaa63bb
2 changed files with 2 additions and 2 deletions

View File

@ -596,7 +596,7 @@ class Activity {
$i['obj'] = json_decode($i['obj'],true);
}
if($i['obj']['type'] === ACTIVITY_OBJ_PHOTO) {
$i['obj']['id'] = $i['id'];
$i['obj']['id'] = $i['mid'];
}
$obj = self::encode_object($i['obj']);

View File

@ -42,7 +42,7 @@ class Zotfeed extends \Zotlabs\Web\Controller {
}
logger('zotfeed request: ' . $r[0]['channel_name'], LOGGER_DEBUG);
$result['project'] = 'Hubzilla';
$result['messages'] = zot_feed($r[0]['channel_id'],$observer['xchan_hash'],array('mindate' => $mindate));
$result['success'] = true;
json_return_and_die($result);