diff options
author | friendica <info@friendica.com> | 2014-09-23 20:55:22 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-23 20:55:22 -0700 |
commit | 81ee35e03bc45bc80aaabb9416bdee2968b8f504 (patch) | |
tree | 2382e7fc62713b5a9828a25aeccac15d40852165 /include/items.php | |
parent | 02210b81d8c68db354ef3e33b903fb9d1605df7e (diff) | |
download | volse-hubzilla-81ee35e03bc45bc80aaabb9416bdee2968b8f504.tar.gz volse-hubzilla-81ee35e03bc45bc80aaabb9416bdee2968b8f504.tar.bz2 volse-hubzilla-81ee35e03bc45bc80aaabb9416bdee2968b8f504.zip |
fix url mismatches of a single trailing slash for feed author/owner comparisons; update diaspora_compat
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index dbea5779c..d972a1ce9 100755 --- a/include/items.php +++ b/include/items.php @@ -1424,6 +1424,9 @@ function get_atom_elements($feed,$item,&$author) { $author['author_link'] = unxmlify($feed->get_permalink()); } + if(substr($author['author_link'],-1,1) == '/') + $author['author_link'] = substr($author['author_link'],0,-1); + $res['mid'] = base64url_encode(unxmlify($item->get_id())); $res['title'] = unxmlify($item->get_title()); $res['body'] = unxmlify($item->get_content()); |