]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/command.php
add an action to backup the current account in ActivityStreams format
[quix0rs-gnu-social.git] / lib / command.php
index 2a8075e7bacc11aa9d4f52b0b0b04f9f6ed1263e..3fb4d76c75f131ff74f245362a646cde59d43086 100644 (file)
@@ -479,7 +479,7 @@ class MessageCommand extends Command
             return;
         }
 
-        $this->text = common_shorten_links($this->text);
+        $this->text = $this->user->shortenLinks($this->text);
 
         if (Message::contentTooLong($this->text)) {
             // XXX: i18n. Needs plural support.
@@ -582,7 +582,7 @@ class ReplyCommand extends Command
             return;
         }
 
-        $this->text = common_shorten_links($this->text);
+        $this->text = $this->user->shortenLinks($this->text);
 
         if (Notice::contentTooLong($this->text)) {
             // XXX: i18n. Needs plural support.