diff options
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--] | include/diaspora.php | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | include/items.php | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 1e6662f04..1e6662f04 100644..100755 --- a/include/diaspora.php +++ b/include/diaspora.php diff --git a/include/items.php b/include/items.php index 6b16810b2..4513db1db 100644..100755 --- a/include/items.php +++ b/include/items.php @@ -3300,7 +3300,9 @@ function drop_item($id,$interactive = true) { if(count($r)) { // The below handle only works for NETWORK_DFRN. I think that's ok, because this function // only handles DFRN deletes - $handle = $r['nick'] . '@' . substr($r['url'], strpos($r['url'],'://') + 3, strpos($r['url'],'/profile') - 1); + $handle_baseurl_start = strpos($r['url'],'://') + 3; + $handle_baseurl_length = strpos($r['url'],'/profile') - $handle_baseurl_start; + $handle = $r['nick'] . '@' . substr($r['url'], $handle_baseurl_start, $handle_baseurl_length); $authorsig = ''; } } |