]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/restoreuser.php
Fix for tickets #2917, #2262: user URL shortening options not being applied in non...
[quix0rs-gnu-social.git] / scripts / restoreuser.php
index 8327c796c2cf0cb3e987cb8ad76fe877059ed429..b37e9db74108752f4b00072e212079b948b18b5d 100644 (file)
@@ -219,7 +219,7 @@ function postNote($user, $activity)
     $rendered = purify($sourceContent);
     $content = html_entity_decode(strip_tags($rendered), ENT_QUOTES, 'UTF-8');
 
-    $shortened = common_shorten_links($content);
+    $shortened = $user->shortenLinks($content);
 
     $options = array('is_local' => Notice::LOCAL_PUBLIC,
                      'uri' => $sourceUri,