X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapitimelineuser.php;h=b0ca7e923fb741787fd2a6c3fecc5408cef600b5;hb=a159352b6553cf69420739f237a7dbfaf4bc865a;hp=b3b908accc8a3f971df137c98632820ccf78b026;hpb=be682a3f8c802fb0f61b38f4689decb10eed1715;p=quix0rs-gnu-social.git diff --git a/actions/apitimelineuser.php b/actions/apitimelineuser.php index b3b908accc..b0ca7e923f 100644 --- a/actions/apitimelineuser.php +++ b/actions/apitimelineuser.php @@ -329,7 +329,6 @@ class ApiTimelineUserAction extends ApiBareAuthAction $saved = null; if (Event::handle('StartAtomPubNewActivity', array(&$activity, $this->user, &$saved))) { - if ($activity->verb != ActivityVerb::POST) { // TRANS: Client error displayed when not using the POST verb. Do not translate POST. $this->clientError(_('Can only handle POST activities.')); @@ -405,6 +404,7 @@ class ApiTimelineUserAction extends ApiBareAuthAction if (!empty($notice)) { // TRANS: Client error displayed when using another format than AtomPub. + // TRANS: %s is the notice URI. $this->clientError(sprintf(_('Notice with URI "%s" already exists.'), $note->id)); return;