From 7850ecbd95f37c86c516c7bde5f3299a6a91e9b5 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 17 Jun 2018 20:53:05 -0700 Subject: remove several unused/unreferenced templates --- include/items.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/items.php') 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 -- cgit v1.2.3