aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-29 18:46:51 -0700
committerfriendica <info@friendica.com>2013-10-29 18:46:51 -0700
commit75ba7ae1166562f48356b445b10cce2e57a42f4a (patch)
tree24b3cc9876ae5eb248c95cf9f5f87a12ac0a08d6 /include/zot.php
parent5c98d5eaaed2cb342c7e823f5893c0d0d4e19de5 (diff)
downloadvolse-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.php11
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