]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Invite.php
Possibly Avoid database error when storing photo item
[friendica.git] / src / Module / Invite.php
index 10346a5162750b6ec864fbe619c59314419b12d1..8c9c59d304660cdcd7c24fbaf46137c0a8579766 100644 (file)
@@ -35,7 +35,7 @@ use Friendica\Util\Strings;
  */
 class Invite extends BaseModule
 {
-       public function post()
+       protected function post(array $request = [], array $post = [])
        {
                if (!local_user()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
@@ -124,7 +124,7 @@ class Invite extends BaseModule
                info(DI::l10n()->tt('%d message sent.', '%d messages sent.', $total));
        }
 
-       public function content(): string
+       protected function content(array $request = []): string
        {
                if (!local_user()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));