From 3727bea29acb79f66c15b155133ef3bb98d93d49 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 29 Sep 2016 16:20:26 -0700 Subject: issue #538 continued --- Zotlabs/Module/Attach.php | 2 +- Zotlabs/Module/Getfile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Attach.php b/Zotlabs/Module/Attach.php index de941d52c..94f46978a 100644 --- a/Zotlabs/Module/Attach.php +++ b/Zotlabs/Module/Attach.php @@ -14,7 +14,7 @@ class Attach extends \Zotlabs\Web\Controller { return; } - $r = attach_by_hash(argv(1),((argc() > 2) ? intval(argv(2)) : 0)); + $r = attach_by_hash(argv(1),get_observer_hash(),((argc() > 2) ? intval(argv(2)) : 0)); if(! $r['success']) { notice( $r['message'] . EOL); diff --git a/Zotlabs/Module/Getfile.php b/Zotlabs/Module/Getfile.php index 986a819ea..12c1d0842 100644 --- a/Zotlabs/Module/Getfile.php +++ b/Zotlabs/Module/Getfile.php @@ -63,7 +63,7 @@ class Getfile extends \Zotlabs\Web\Controller { killme(); } - $r = attach_by_hash($resource,$revision); + $r = attach_by_hash($resource,$channel['channel_hash'],$revision); if(! $r['success']) { logger('attach_by_hash failed: ' . $r['message']); -- cgit v1.2.3