mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Add medias link to mms into received + sended + scheduled + discussion
This commit is contained in:
parent
70d01be041
commit
f330312b55
8 changed files with 122 additions and 10 deletions
|
@ -56,6 +56,13 @@ namespace controllers\publics;
|
|||
public function list_json()
|
||||
{
|
||||
$entities = $this->internal_scheduled->list_for_user($_SESSION['user']['id']);
|
||||
foreach ($entities as &$entity)
|
||||
{
|
||||
if ($entity['mms'])
|
||||
{
|
||||
$entity['medias'] = $this->internal_media->gets_for_scheduled($entity['id']);
|
||||
}
|
||||
}
|
||||
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(['data' => $entities]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue