aboutsummaryrefslogtreecommitdiffstats
path: root/include/salmon.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-16 21:05:52 -0700
committerredmatrix <git@macgirvin.com>2016-03-16 21:05:52 -0700
commit3a8f6e657627c166b72b9ef5ea20c672f6a67d97 (patch)
tree9a8dad3a0a6f6d837873dd0444c41e8c8751f100 /include/salmon.php
parent38eb79705e4de252f29e56543de8a287132b488e (diff)
downloadvolse-hubzilla-3a8f6e657627c166b72b9ef5ea20c672f6a67d97.tar.gz
volse-hubzilla-3a8f6e657627c166b72b9ef5ea20c672f6a67d97.tar.bz2
volse-hubzilla-3a8f6e657627c166b72b9ef5ea20c672f6a67d97.zip
more federation backend
Diffstat (limited to 'include/salmon.php')
-rw-r--r--include/salmon.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/salmon.php b/include/salmon.php
index e1895ab75..737d1f0d0 100644
--- a/include/salmon.php
+++ b/include/salmon.php
@@ -42,13 +42,8 @@ function get_salmon_key($uri,$keyhash) {
if(count($ret)) {
for($x = 0; $x < count($ret); $x ++) {
if(substr($ret[$x],0,5) === 'data:') {
- if(strstr($ret[$x],','))
- $ret[$x] = substr($ret[$x],strpos($ret[$x],',')+1);
- else
- $ret[$x] = substr($ret[$x],5);
+ $ret[$x] = convert_salmon_key($ret[$x]);
}
- else
- $ret[$x] = fetch_url($ret[$x]);
}
}