mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +00:00
Implement code review from nupplaphil
This commit is contained in:
parent
dee6a63841
commit
5d0a3be4f6
3 changed files with 5 additions and 5 deletions
|
@ -216,7 +216,7 @@ class Mail
|
|||
if (count($images)) {
|
||||
foreach ($images as $image) {
|
||||
$image_rid = Photo::ridFromURI($image);
|
||||
if ($image_rid) {
|
||||
if (!empty($image_rid)) {
|
||||
Photo::update(['allow-cid' => '<' . $recipient . '>'], ['resource-id' => $image_rid, 'album' => 'Wall Photos', 'uid' => local_user()]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue