]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
$longurl->url is just the same $canon we fed to File_redirection::where()
[quix0rs-gnu-social.git] / lib / util.php
index 3b5bb2de08aa2dde81822e7fd27d2b49b52ab7a3..c03775f5776f43ee87fb35f762181cec1c071483 100644 (file)
@@ -980,7 +980,7 @@ function common_linkify($url) {
     } else {
         $canon = File_redirection::_canonUrl($url);
         $longurl_data = File_redirection::where($canon, common_config('attachments', 'process_links'));
-        $longurl = $longurl_data->url;
+        $longurl = $longurl_data->redir_url;
     }
 
     $attrs = array('href' => $canon, 'title' => $longurl);
@@ -2430,4 +2430,4 @@ function html_sprintf()
         $args[$i] = htmlspecialchars($args[$i]);
     }
     return call_user_func_array('sprintf', $args);
-}
+}
\ No newline at end of file