X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FMail.php;h=78dd6329ce4e4526ccf8ab1ccb17a76a7110fdec;hb=999c56a2845ba94cc7c6950a2c951fedc8c966b6;hp=ea67394ed8121d9339ac4853c5a8922afdced2d9;hpb=3d4e11045acd47b05563085af528dbee110f972c;p=friendica.git diff --git a/src/Model/Mail.php b/src/Model/Mail.php index ea67394ed8..78dd6329ce 100644 --- a/src/Model/Mail.php +++ b/src/Model/Mail.php @@ -117,7 +117,7 @@ class Mail /** * Send private message * - * @param integer $sender_uid the user id of the sender, default 0 + * @param integer $sender_uid the user id of the sender * @param integer $recipient recipient id, default 0 * @param string $body message body, default empty * @param string $subject message subject, default empty @@ -125,7 +125,7 @@ class Mail * @return int * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ - public static function send(int $sender_uid = 0, int $recipient = 0, string $body = '', string $subject = '', string $replyto = ''): int + public static function send(int $sender_uid, int $recipient = 0, string $body = '', string $subject = '', string $replyto = ''): int { $a = DI::app(); @@ -233,7 +233,7 @@ class Mail foreach ($images as $image) { $image_rid = Photo::ridFromURI($image); if (!empty($image_rid)) { - Photo::update(['allow-cid' => '<' . $recipient . '>'], ['resource-id' => $image_rid, 'album' => 'Wall Photos', 'uid' => $sender_uid]); + Photo::update(['allow_cid' => '<' . $recipient . '>'], ['resource-id' => $image_rid, 'album' => 'Wall Photos', 'uid' => $sender_uid]); } } }