issues with image import to zot6 - wrong mid. Also label source project of zotfeed since it is not completely compatible across projects.
This commit is contained in:
parent
35790c584b
commit
8cc4003837
@ -596,7 +596,7 @@ class Activity {
|
|||||||
$i['obj'] = json_decode($i['obj'],true);
|
$i['obj'] = json_decode($i['obj'],true);
|
||||||
}
|
}
|
||||||
if($i['obj']['type'] === ACTIVITY_OBJ_PHOTO) {
|
if($i['obj']['type'] === ACTIVITY_OBJ_PHOTO) {
|
||||||
$i['obj']['id'] = $i['id'];
|
$i['obj']['id'] = $i['mid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$obj = self::encode_object($i['obj']);
|
$obj = self::encode_object($i['obj']);
|
||||||
|
@ -42,7 +42,7 @@ class Zotfeed extends \Zotlabs\Web\Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logger('zotfeed request: ' . $r[0]['channel_name'], LOGGER_DEBUG);
|
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['messages'] = zot_feed($r[0]['channel_id'],$observer['xchan_hash'],array('mindate' => $mindate));
|
||||||
$result['success'] = true;
|
$result['success'] = true;
|
||||||
json_return_and_die($result);
|
json_return_and_die($result);
|
||||||
|
Reference in New Issue
Block a user