aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-08-22 19:39:11 -0700
committerzotlabs <mike@macgirvin.com>2019-08-22 19:39:11 -0700
commit8cc40038375c33886f7c6f7d429c33a47eab8fb9 (patch)
treef30d74fe4df89dd8f92ca023a5d05ee1855b9663
parent35790c584ba5a67a94556ab67ddd57c76a500084 (diff)
downloadvolse-hubzilla-8cc40038375c33886f7c6f7d429c33a47eab8fb9.tar.gz
volse-hubzilla-8cc40038375c33886f7c6f7d429c33a47eab8fb9.tar.bz2
volse-hubzilla-8cc40038375c33886f7c6f7d429c33a47eab8fb9.zip
issues with image import to zot6 - wrong mid. Also label source project of zotfeed since it is not completely compatible across projects.
-rw-r--r--Zotlabs/Lib/Activity.php2
-rw-r--r--Zotlabs/Module/Zotfeed.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 0757eec37..12b6cbdfd 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -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']);
diff --git a/Zotlabs/Module/Zotfeed.php b/Zotlabs/Module/Zotfeed.php
index 381e3acb2..8c13682b4 100644
--- a/Zotlabs/Module/Zotfeed.php
+++ b/Zotlabs/Module/Zotfeed.php
@@ -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);