rpost bbcode tag

This commit is contained in:
friendica
2013-10-29 18:46:51 -07:00
parent 5c98d5eaae
commit 75ba7ae116
4 changed files with 32 additions and 4 deletions

View File

@@ -1896,3 +1896,14 @@ function process_channel_sync_delivery($sender,$arr,$deliveries) {
}
return $result;
}
// We probably should make rpost discoverable.
function get_rpost_path($observer) {
if(! $observer)
return '';
$parsed = parse_url($observer['xchan_url']);
return $parsed['scheme'] . '://' . $parsed['host'] . (($parsed['port']) ? ':' . $parsed['port'] : '') . '/rpost?f=';
}