]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SubMirror/actions/addmirror.php
Remove Twitter from SubMirror
[quix0rs-gnu-social.git] / plugins / SubMirror / actions / addmirror.php
index 31805c166936088e19c8f9306093384c8cfc1d57..4e2e1a0c52a77a56de327a6f933123271175b7fa 100644 (file)
@@ -71,12 +71,9 @@ class AddMirrorAction extends BaseMirrorAction
         switch ($provider) {
         case 'feed':
             return $this->trimmed('feedurl');
-        case 'twitter':
-            $screenie = $this->trimmed('screen_name');
-            $base = 'http://api.twitter.com/1/statuses/user_timeline.atom?screen_name=';
-            return $base . urlencode($screenie);
         default:
-            throw new Exception('Internal form error: unrecognized feed provider.');
+            // TRANS: Exception thrown when a feed provider could not be recognised.
+            throw new Exception(_m('Internal form error: Unrecognized feed provider.'));
         }
     }
 
@@ -85,7 +82,8 @@ class AddMirrorAction extends BaseMirrorAction
         if ($this->oprofile->subscribe()) {
             SubMirror::saveMirror($this->user, $this->profile);
         } else {
-            $this->serverError(_m("Could not subscribe to feed."));
+            // TRANS: Exception thrown when a subscribing to a feed fails.
+            $this->serverError(_m('Could not subscribe to feed.'));
         }
     }
 }