diff options
author | Mario <mario@mariovavti.com> | 2024-11-17 07:58:11 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-17 07:58:11 +0000 |
commit | 81dda15669aa80f22fcabce91bd35dbf45199276 (patch) | |
tree | eadef2d51cf54920c03ea847d89ccdc38a22d182 /Zotlabs | |
parent | 5dee6007352c7fd987775307926c381e6fba032e (diff) | |
download | volse-hubzilla-81dda15669aa80f22fcabce91bd35dbf45199276.tar.gz volse-hubzilla-81dda15669aa80f22fcabce91bd35dbf45199276.tar.bz2 volse-hubzilla-81dda15669aa80f22fcabce91bd35dbf45199276.zip |
fix undefined variables
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Tagger.php | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index be2305c04..3d499bd08 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -2096,7 +2096,7 @@ class Libzot { $raw_activity = $AS->data; - $AS = new ActivityStreams($raw_activity['object'], portable_id: $env['sender']); + $AS = new ActivityStreams($raw_activity['object']); // Store the original activity id and type for later usage $AS->meta['original_id'] = $original_id; diff --git a/Zotlabs/Module/Tagger.php b/Zotlabs/Module/Tagger.php index b6067be5e..a88a3b112 100644 --- a/Zotlabs/Module/Tagger.php +++ b/Zotlabs/Module/Tagger.php @@ -1,6 +1,7 @@ <?php namespace Zotlabs\Module; +use App; use Zotlabs\Lib\Libsync; require_once('include/security.php'); @@ -18,6 +19,7 @@ class Tagger extends \Zotlabs\Web\Controller { } $sys = get_sys_channel(); + $channel = App::get_channel(); $observer_hash = get_observer_hash(); //strip html-tags @@ -125,10 +127,6 @@ class Tagger extends \Zotlabs\Web\Controller { $termlink = html_entity_decode('⋕') . '[zrl=' . z_root() . '/search?tag=' . urlencode($clean_term) . ']'. $clean_term . '[/zrl]'; - $channel = \App::get_channel(); - - $arr = array(); - $arr['owner_xchan'] = $item['owner_xchan']; $arr['author_xchan'] = $channel['channel_hash']; |