aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-06-17 20:53:05 -0700
committerzotlabs <mike@macgirvin.com>2018-06-17 20:53:05 -0700
commit7850ecbd95f37c86c516c7bde5f3299a6a91e9b5 (patch)
treea4dd3e2cb1f63b8f92316c7569651f72e12ec4c5 /include/items.php
parent1cb60c7f5e97fb5c78fea4f910ec0e7d5076aab5 (diff)
downloadvolse-hubzilla-7850ecbd95f37c86c516c7bde5f3299a6a91e9b5.tar.gz
volse-hubzilla-7850ecbd95f37c86c516c7bde5f3299a6a91e9b5.tar.bz2
volse-hubzilla-7850ecbd95f37c86c516c7bde5f3299a6a91e9b5.zip
remove several unused/unreferenced templates
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 54df5d322..caf70b294 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2948,6 +2948,18 @@ function start_delivery_chain($channel, $item, $item_id, $parent) {
}
}
}
+
+ // This will change the author to the post owner. Useful for RSS feeds which are to be syndicated
+ // to federated platforms which can't verify the identity of the author.
+ // This MAY cause you to run afoul of copyright law.
+
+ $rewrite_author = intval(get_abconfig($channel['channel_id'],$item['owner_xchan'],'system','rself'));
+ if($rewrite_author) {
+ $item['author_xchan'] = $item['owner_xchan'];
+ if($item['owner']) {
+ $item['author'] = $item['owner'];
+ }
+ }
}
// Change this copy of the post to a forum head message and deliver to all the tgroup members