Ajout de l'affichage des account et contest dans l'app
This commit is contained in:
@@ -12,6 +12,8 @@ class ProcessNews implements ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public $timeout = 300;
|
||||
|
||||
private $authid;
|
||||
|
||||
/**
|
||||
@@ -32,6 +34,11 @@ class ProcessNews implements ShouldQueue
|
||||
$user = Account::find($this->authid);
|
||||
|
||||
try{
|
||||
|
||||
//On check si le compte est ok
|
||||
$API->check($user);
|
||||
|
||||
//On check les notifs
|
||||
$API->unread($user);
|
||||
|
||||
if (Cache::has('news')) {
|
||||
@@ -50,14 +57,14 @@ class ProcessNews implements ShouldQueue
|
||||
foreach ($selectedArticles as $article) {
|
||||
$tweetid = $article['conversation_id_str'];
|
||||
$API->retweet($user, $tweetid);
|
||||
sleep(15);
|
||||
sleep(30);
|
||||
}
|
||||
}
|
||||
}catch (Exception $exception){
|
||||
$text = "Le compte Twitter " . $user->name . " : " . $exception->getMessage();
|
||||
|
||||
// L'URL des deux liens
|
||||
$url = 'https://myx.ovh/nova/resources/accounts/'.$user->id;
|
||||
$url = 'https://myx.ovh/accounts/'.$user->id;
|
||||
|
||||
$keyboard = [
|
||||
'inline_keyboard' => [
|
||||
@@ -78,4 +85,4 @@ class ProcessNews implements ShouldQueue
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user