]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/repeat.php
Remove trailing whitespace in UI text.
[quix0rs-gnu-social.git] / actions / repeat.php
index 869c2ddd4ee1851c073586789020768b64eb56a0..333e1cd02eacac5de47b128b8f7a97dde4e5f146 100644 (file)
@@ -73,27 +73,14 @@ class RepeatAction extends Action
             return false;
         }
 
-        if ($this->user->id == $this->notice->profile_id) {
-            // TRANS: Client error displayed when trying to repeat an own notice.
-            $this->clientError(_('You cannot repeat your own notice.'));
-            return false;
-        }
-
         $token  = $this->trimmed('token-'.$id);
 
         if (empty($token) || $token != common_session_token()) {
+            // TRANS: Client error displayed when the session token does not match or is not given.
             $this->clientError(_('There was a problem with your session token. Try again, please.'));
             return false;
         }
 
-        $profile = $this->user->getProfile();
-
-        if ($profile->hasRepeated($id)) {
-            // TRANS: Client error displayed when trying to repeat an already repeated notice.
-            $this->clientError(_('You already repeated that notice.'));
-            return false;
-        }
-
         return true;
     }