aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-28 09:29:39 +0000
committerMario <mario@mariovavti.com>2023-02-28 09:29:39 +0000
commitca0bd3ed3251e2558dc4a53abed417dd9da6244d (patch)
treef35d955a3132321dff11b4654bb5556b2e458975 /Zotlabs/Widget
parent7dacc7c2688199f8d73a2a33fbdfdd840fc62d77 (diff)
downloadvolse-hubzilla-ca0bd3ed3251e2558dc4a53abed417dd9da6244d.tar.gz
volse-hubzilla-ca0bd3ed3251e2558dc4a53abed417dd9da6244d.tar.bz2
volse-hubzilla-ca0bd3ed3251e2558dc4a53abed417dd9da6244d.zip
fix some php warnings
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Pinned.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php
index 88a87d0fe..6d2618deb 100644
--- a/Zotlabs/Widget/Pinned.php
+++ b/Zotlabs/Widget/Pinned.php
@@ -42,6 +42,8 @@ class Pinned {
$observer = \App::get_observer();
+ xchan_query($items);
+
foreach($items as $item) {
$midb64 = gen_link_id($item['mid']);
@@ -49,8 +51,8 @@ class Pinned {
if(isset($observer['xchan_hash']) && in_array($observer['xchan_hash'], get_pconfig($item['uid'], 'pinned_hide', $midb64, [])))
continue;
- $author = channelx_by_hash($item['author_xchan']);
- $owner = channelx_by_hash($item['owner_xchan']);
+ $author = $item['author'];
+ $owner = $item['owner'];
$profile_avatar = $author['xchan_photo_m'];
$profile_link = chanlink_hash($item['author_xchan']);