diff options
author | Mario <mario@mariovavti.com> | 2024-07-15 10:12:02 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-07-15 10:12:02 +0000 |
commit | 0bcecc4baa8665e44a459be5620e7a1943fbbaf8 (patch) | |
tree | 91d9d242a5c18ca3e1107580bb302338ac323cf2 /Zotlabs/Module/Share.php | |
parent | 78e68519e89e235db0e5d54982f1ea3aba4b3654 (diff) | |
download | volse-hubzilla-0bcecc4baa8665e44a459be5620e7a1943fbbaf8.tar.gz volse-hubzilla-0bcecc4baa8665e44a459be5620e7a1943fbbaf8.tar.bz2 volse-hubzilla-0bcecc4baa8665e44a459be5620e7a1943fbbaf8.zip |
make sure we always have an object which was not the case when repeating one of our own items
Diffstat (limited to 'Zotlabs/Module/Share.php')
-rw-r--r-- | Zotlabs/Module/Share.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Share.php b/Zotlabs/Module/Share.php index ea9313fa8..db0acb6f5 100644 --- a/Zotlabs/Module/Share.php +++ b/Zotlabs/Module/Share.php @@ -94,6 +94,12 @@ class Share extends \Zotlabs\Web\Controller { else killme(); + $object = Activity::fetch_item([ 'id' => $item['mid'] ]); + + if (!$object) { + killme(); + } + $arr['aid'] = $item['aid']; $arr['uid'] = $item['uid']; @@ -121,7 +127,7 @@ class Share extends \Zotlabs\Web\Controller { $arr['owner_xchan'] = $item['author_xchan']; $arr['source_xchan'] = ''; - $arr['obj'] = $item['obj']; + $arr['obj'] = $object; $arr['obj_type'] = $item['obj_type']; $arr['verb'] = ACTIVITY_SHARE; |