aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-01-17 21:31:37 +0000
committerMario <mario@mariovavti.com>2020-01-17 21:31:37 +0000
commit17a4aa983ef1d5b68195d91f78ac04bc48085b1b (patch)
tree22ce223e792889c324d9586b43c17be75b50f48f /include
parent2a0a06d74aa1e51b0e50459f90167ab35ba1411b (diff)
downloadvolse-hubzilla-17a4aa983ef1d5b68195d91f78ac04bc48085b1b.tar.gz
volse-hubzilla-17a4aa983ef1d5b68195d91f78ac04bc48085b1b.tar.bz2
volse-hubzilla-17a4aa983ef1d5b68195d91f78ac04bc48085b1b.zip
$owner in get_feed_for() is the atom rendered channel, for atom_entry we need the owners channel_id though.
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 6d14eb5c4..9ff09cc66 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -155,7 +155,7 @@ function get_feed_for($channel, $observer_hash, $params) {
if($item['item_private'])
continue;
- $atom .= atom_entry($item, $type, null, $owner, true, '', $params['compat']);
+ $atom .= atom_entry($item, $type, null, $channel, true, '', $params['compat']);
}
}
@@ -1921,7 +1921,7 @@ function atom_entry($item, $type, $author, $owner, $comment = false, $cid = 0, $
$summary = '';
if($item['allow_cid'] || $item['allow_gid'] || $item['deny_cid'] || $item['deny_gid'])
- $body = fix_private_photos($body,$owner['uid'],$item,$cid);
+ $body = fix_private_photos($body,$owner['channel_id'],$item,$cid);
if($compat) {
$compat_photos = compat_photos_list($body);