Skip to content

Commit

Permalink
Ignore instagram story
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Feb 3, 2025
1 parent 67381b6 commit ef9a765
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/lhfbmessenger/callbackinstagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@

$data = json_decode(file_get_contents('php://input'), true);

if (isset($data['entry'][0]['messaging'][0]['message']['reply_to']) && !isset($data['entry'][0]['messaging'][0]['message']['text'])) {
// We ignore messages which are reply to story
if (isset($data['entry'][0]['messaging'][0]['message']['reply_to']['story'])) {
exit();
}


$cfg = erConfigClassLhConfig::getInstance();
$db = ezcDbInstance::get();

Expand Down
2 changes: 1 addition & 1 deletion modules/lhfbmessenger/callbackstandaloneinstagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$data = json_decode(file_get_contents('php://input'), true);

// We ignore messages which are reply to story
if (isset($data['entry'][0]['messaging'][0]['message']['reply_to']) && !isset($data['entry'][0]['messaging'][0]['message']['text'])){
if (isset($data['entry'][0]['messaging'][0]['message']['reply_to']['story'])) {
exit();
}

Expand Down

0 comments on commit ef9a765

Please sign in to comment.