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
diff --git a/view/tpl/admin_hubloc.tpl b/view/tpl/admin_hubloc.tpl
deleted file mode 100755
index 1bd1f0122..000000000
--- a/view/tpl/admin_hubloc.tpl
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
{{$title}} - {{$page}}
-
-
-
-
- {{foreach $th_hubloc as $th}}{{$th}} {{/foreach}}
-
-
-
-
- {{foreach $hubloc as $hub}}
- {{$hub.hubloc_id}} {{$hub.hubloc_addr}} {{$hub.hubloc_host}} {{$hub.hubloc_status}}
-
-
-
- {{/foreach}}
-
-
-
-
-
diff --git a/view/tpl/api_config_xml.tpl b/view/tpl/api_config_xml.tpl
deleted file mode 100755
index 8c0766c73..000000000
--- a/view/tpl/api_config_xml.tpl
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
- {{$config.site.name}}
- {{$config.site.server}}
- default
-
- {{$config.site.logo}}
-
- true
- en
- {{$config.site.email}}
-
-
- UTC
- {{$config.site.closed}}
-
- false
- {{$config.site.private}}
- {{$config.site.textlimit}}
- {{$config.site.ssl}}
- {{$config.site.sslserver}}
- 30
-
-
-
- cc
-
- http://creativecommons.org/licenses/by/3.0/
- Creative Commons Attribution 3.0
- http://i.creativecommons.org/l/by/3.0/80x15.png
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- 20
- 600
-
-
-
- false
- INVALID SERVER
- 5222
- update
-
-
- StatusNet
-
-
-
- false
- 0
-
-
diff --git a/view/tpl/api_friends_xml.tpl b/view/tpl/api_friends_xml.tpl
deleted file mode 100755
index f2a7234d1..000000000
--- a/view/tpl/api_friends_xml.tpl
+++ /dev/null
@@ -1,5 +0,0 @@
-
- {{foreach $users as $user}}
- {{include file="api_user_xml.tpl"}}
- {{/foreach}}
-
diff --git a/view/tpl/api_ratelimit_xml.tpl b/view/tpl/api_ratelimit_xml.tpl
deleted file mode 100755
index e4b470a25..000000000
--- a/view/tpl/api_ratelimit_xml.tpl
+++ /dev/null
@@ -1,6 +0,0 @@
-
- {{$hash.remaining_hits}}
- {{$hash.hourly_limit}}
- {{$hash.reset_time}}
- {{$hash.resettime_in_seconds}}
-
diff --git a/view/tpl/api_status_xml.tpl b/view/tpl/api_status_xml.tpl
deleted file mode 100755
index cbb736e22..000000000
--- a/view/tpl/api_status_xml.tpl
+++ /dev/null
@@ -1,46 +0,0 @@
-{{if $status}}
- {{$status.created_at}}
- {{$status.id}}
- {{$status.text}}
- {{$status.source}}
- {{$status.truncated}}
- {{$status.in_reply_to_status_id}}
- {{$status.in_reply_to_user_id}}
- {{$status.favorited}}
- {{$status.in_reply_to_screen_name}}
- {{$status.geo}}
- {{$status.coordinates}}
- {{$status.place}}
- {{$status.contributors}}
-
- {{$status.user.id}}
- {{$status.user.name}}
- {{$status.user.screen_name}}
- {{$status.user.location}}
- {{$status.user.description}}
- {{$status.user.profile_image_url}}
- {{$status.user.url}}
- {{$status.user.protected}}
- {{$status.user.followers}}
- {{$status.user.profile_background_color}}
- {{$status.user.profile_text_color}}
- {{$status.user.profile_link_color}}
- {{$status.user.profile_sidebar_fill_color}}
- {{$status.user.profile_sidebar_border_color}}
- {{$status.user.friends_count}}
- {{$status.user.created_at}}
- {{$status.user.favourites_count}}
- {{$status.user.utc_offset}}
- {{$status.user.time_zone}}
- {{$status.user.profile_background_image_url}}
- {{$status.user.profile_background_tile}}
- {{$status.user.profile_use_background_image}}
-
- {{$status.user.geo_enabled}}
- {{$status.user.verified}}
-
- {{$status.user.statuses_count}}
- {{$status.user.lang}}
- {{$status.user.contributors_enabled}}
-
-{{/if}}
diff --git a/view/tpl/api_test_xml.tpl b/view/tpl/api_test_xml.tpl
deleted file mode 100755
index 80a541c39..000000000
--- a/view/tpl/api_test_xml.tpl
+++ /dev/null
@@ -1 +0,0 @@
-{{$ok}}
diff --git a/view/tpl/api_timeline_atom.tpl b/view/tpl/api_timeline_atom.tpl
deleted file mode 100755
index e8bfb689e..000000000
--- a/view/tpl/api_timeline_atom.tpl
+++ /dev/null
@@ -1,90 +0,0 @@
-
- StatusNet
- {{$rss.self}}
- Friendika
- Friendika API feed
- {{$rss.logo}}
- {{$rss.atom_updated}}
-
-
-
-
-
- http://activitystrea.ms/schema/1.0/person
- {{$user.url}}
- {{$user.name}}
-
-
-
-
-
-
- {{$user.screen_name}}
- {{$user.name}}
-
- homepage
- {{$user.url}}
- true
-
-
-
-
-
-
- http://activitystrea.ms/schema/1.0/person
- {{$user.contact_url}}
- {{$user.name}}
-
-
-
-
-
- {{$user.screen_name}}
- {{$user.name}}
-
- homepage
- {{$user.url}}
- true
-
-
-
-
-
- {{foreach $statuses as $status}}
-
- {{$status.objecttype}}
- {{$status.message_id}}
- {{$status.text}}
- {{$status.statusnet_html}}
-
- {{$status.verb}}
- {{$status.published}}
- {{$status.updated}}
-
-
-
-
-
-
-
- http://activitystrea.ms/schema/1.0/person
- {{$status.user.url}}
- {{$status.user.name}}
-
-
-
-
- {{$status.user.screen_name}}
- {{$status.user.name}}
-
-
- homepage
- {{$status.user.url}}
- true
-
-
-
-
-
- {{/foreach}}
-
diff --git a/view/tpl/api_timeline_rss.tpl b/view/tpl/api_timeline_rss.tpl
deleted file mode 100755
index 86c645e99..000000000
--- a/view/tpl/api_timeline_rss.tpl
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
- Friendika
- {{$rss.alternate}}
-
- Friendika timeline
- {{$rss.language}}
- 40
-
- {{$user.link}}
- {{$user.name}}'s items
- {{$user.profile_image_url}}
-
-
-{{foreach $statuses as $status}}
- -
-
{{$status.user.name}}: {{$status.text}}
- {{$status.text}}
- {{$status.created_at}}
- {{$status.url}}
- {{$status.url}}
- {{$status.source}}
-
-{{/foreach}}
-
-
diff --git a/view/tpl/api_timeline_xml.tpl b/view/tpl/api_timeline_xml.tpl
deleted file mode 100755
index f14d73e9c..000000000
--- a/view/tpl/api_timeline_xml.tpl
+++ /dev/null
@@ -1,20 +0,0 @@
-
-{{foreach $statuses as $status}}
- {{$status.text}}
- {{$status.truncated}}
- {{$status.created_at}}
- {{$status.in_reply_to_status_id}}
- {{$status.source}}
- {{$status.id}}
- {{$status.in_reply_to_user_id}}
- {{$status.in_reply_to_screen_name}}
- {{$status.geo}}
- {{$status.favorited}}
-{{include file="api_user_xml.tpl" user=$status.user}} {{$status.statusnet_html}}
- {{$status.statusnet_conversation_id}}
- {{$status.url}}
- {{$status.coordinates}}
- {{$status.place}}
- {{$status.contributors}}
-
-{{/foreach}}
diff --git a/view/tpl/api_user_xml.tpl b/view/tpl/api_user_xml.tpl
deleted file mode 100755
index 3b51992f6..000000000
--- a/view/tpl/api_user_xml.tpl
+++ /dev/null
@@ -1,46 +0,0 @@
-
- {{$user.id}}
- {{$user.name}}
- {{$user.screen_name}}
- {{$user.location}}
- {{$user.description}}
- {{$user.profile_image_url}}
- {{$user.url}}
- {{$user.protected}}
- {{$user.followers_count}}
- {{$user.friends_count}}
- {{$user.created_at}}
- {{$user.favourites_count}}
- {{$user.utc_offset}}
- {{$user.time_zone}}
- {{$user.statuses_count}}
- {{$user.following}}
- {{$user.profile_background_color}}
- {{$user.profile_text_color}}
- {{$user.profile_link_color}}
- {{$user.profile_sidebar_fill_color}}
- {{$user.profile_sidebar_border_color}}
- {{$user.profile_background_image_url}}
- {{$user.profile_background_tile}}
- {{$user.profile_use_background_image}}
- {{$user.notifications}}
- {{$user.geo_enabled}}
- {{$user.verified}}
- {{$user.lang}}
- {{$user.contributors_enabled}}
- {{if $user.status}}
- {{$user.status.created_at}}
- {{$user.status.id}}
- {{$user.status.text}}
- {{$user.status.source}}
- {{$user.status.truncated}}
- {{$user.status.in_reply_to_status_id}}
- {{$user.status.in_reply_to_user_id}}
- {{$user.status.favorited}}
- {{$user.status.in_reply_to_screen_name}}
- {{$user.status.geo}}
- {{$user.status.coordinates}}
- {{$user.status.place}}
- {{$user.status.contributors}}
- {{/if}}
-
diff --git a/view/tpl/birthdays_reminder.tpl b/view/tpl/birthdays_reminder.tpl
deleted file mode 100755
index d0500364a..000000000
--- a/view/tpl/birthdays_reminder.tpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{if $count}}
-{{$event_reminders}} ({{$count}})
-{{$event_title}}
-
-{{foreach $events as $event}}
-
-{{/foreach}}
-
-{{/if}}
-
diff --git a/view/tpl/contact_head.tpl b/view/tpl/contact_head.tpl
deleted file mode 100755
index 72e7edbfb..000000000
--- a/view/tpl/contact_head.tpl
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
diff --git a/view/tpl/delegate.tpl b/view/tpl/delegate.tpl
deleted file mode 100755
index cbaa8da86..000000000
--- a/view/tpl/delegate.tpl
+++ /dev/null
@@ -1,57 +0,0 @@
-{{$header}}
-
-{{$desc}}
-
-{{if $managers}}
-{{$head_managers}}
-
-{{foreach $managers as $x}}
-
-
-
-{{/foreach}}
-
-
-{{/if}}
-
-
-{{$head_delegates}}
-
-{{if $delegates}}
-{{foreach $delegates as $x}}
-
-
-
-{{/foreach}}
-
-{{else}}
-{{$none}}
-{{/if}}
-
-
-
-{{$head_potentials}}
-{{if $potentials}}
-{{foreach $potentials as $x}}
-
-
-
-{{/foreach}}
-
-{{else}}
-{{$none}}
-{{/if}}
-
-
diff --git a/view/tpl/display-head.tpl b/view/tpl/display-head.tpl
deleted file mode 100755
index 913784d98..000000000
--- a/view/tpl/display-head.tpl
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
diff --git a/view/tpl/events_menu_side.tpl b/view/tpl/events_menu_side.tpl
deleted file mode 100755
index b9a9062b1..000000000
--- a/view/tpl/events_menu_side.tpl
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/view/tpl/events_reminder.tpl b/view/tpl/events_reminder.tpl
deleted file mode 100755
index fd6a1a5c7..000000000
--- a/view/tpl/events_reminder.tpl
+++ /dev/null
@@ -1,10 +0,0 @@
-{{if $count}}
-{{$event_reminders}} ({{$count}})
-{{$event_title}}
-
-{{foreach $events as $event}}
-
-{{/foreach}}
-
-{{/if}}
-
diff --git a/view/tpl/group_drop.tpl b/view/tpl/group_drop.tpl
deleted file mode 100755
index 627debc80..000000000
--- a/view/tpl/group_drop.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
diff --git a/view/tpl/match.tpl b/view/tpl/match.tpl
deleted file mode 100755
index a5ebb043c..000000000
--- a/view/tpl/match.tpl
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- {{if $connlnk}}
-
- {{/if}}
-
-
diff --git a/view/tpl/safesearch.tpl b/view/tpl/safesearch.tpl
deleted file mode 100644
index 58ce22741..000000000
--- a/view/tpl/safesearch.tpl
+++ /dev/null
@@ -1,6 +0,0 @@
-
diff --git a/view/tpl/select_timezone.tpl b/view/tpl/select_timezone.tpl
deleted file mode 100644
index 2820a54f4..000000000
--- a/view/tpl/select_timezone.tpl
+++ /dev/null
@@ -1,11 +0,0 @@
-{{* TODO: Make id configurabel *}}
-
-{{foreach $continents as $continent => $cities}}
-
-{{foreach $cities as $city => $value}}
-{{$city}}
-{{/foreach}}
-
-{{/foreach}}
-
-
diff --git a/view/tpl/settings_connectors.tpl b/view/tpl/settings_connectors.tpl
deleted file mode 100755
index 8bea9ca63..000000000
--- a/view/tpl/settings_connectors.tpl
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
{{$title}}
-
-
-
diff --git a/view/tpl/toggle_mobile_footer.tpl b/view/tpl/toggle_mobile_footer.tpl
deleted file mode 100755
index 82c0197ba..000000000
--- a/view/tpl/toggle_mobile_footer.tpl
+++ /dev/null
@@ -1,2 +0,0 @@
-{{$toggle_text}}
-
diff --git a/view/tpl/write_pages.tpl b/view/tpl/write_pages.tpl
deleted file mode 100644
index 53146ee30..000000000
--- a/view/tpl/write_pages.tpl
+++ /dev/null
@@ -1,3 +0,0 @@
-