1
0
Fork 0
mirror of https://github.com/RaspbianFrance/raspisms.git synced 2025-05-04 15:26:26 +02:00

re-enable smsstops

This commit is contained in:
osaajani 2021-07-13 02:13:40 +02:00
parent 8f7868cae7
commit 8492da652a
3 changed files with 38 additions and 0 deletions
controllers/internals

View file

@ -68,6 +68,14 @@ namespace controllers\internals;
return false;
}
//Check if the received message is a SMS STOP and we must register it
$internal_smsstop = new SmsStop($this->bdd);
$is_stop = $internal_smsstop->check_for_stop($received['text']);
if ($is_stop)
{
$internal_smsstop->create($id_user, $origin);
}
//Link medias
$internal_media = new Media($this->bdd);
foreach ($media_ids as $media_id)