diff options
author | friendica <info@friendica.com> | 2013-10-29 18:46:51 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-10-29 18:46:51 -0700 |
commit | 75ba7ae1166562f48356b445b10cce2e57a42f4a (patch) | |
tree | 24b3cc9876ae5eb248c95cf9f5f87a12ac0a08d6 /include/zot.php | |
parent | 5c98d5eaaed2cb342c7e823f5893c0d0d4e19de5 (diff) | |
download | volse-hubzilla-75ba7ae1166562f48356b445b10cce2e57a42f4a.tar.gz volse-hubzilla-75ba7ae1166562f48356b445b10cce2e57a42f4a.tar.bz2 volse-hubzilla-75ba7ae1166562f48356b445b10cce2e57a42f4a.zip |
rpost bbcode tag
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 91729f9de..71d68700a 100644 --- a/include/zot.php +++ b/include/zot.php @@ -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='; + +}
\ No newline at end of file |