mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
fix: various small fixes (#3578)
This commit is contained in:
parent
11ce8b5dcd
commit
701fe3cfed
13 changed files with 87 additions and 39 deletions
|
@ -55,6 +55,8 @@ final class Logger
|
|||
'Unable to find channel. The channel is non-existing or non-public',
|
||||
// fb
|
||||
'This group is not public! RSS-Bridge only supports public groups!',
|
||||
'You must be logged in to view this page',
|
||||
'Unable to get the page id. You should consider getting the ID by hand',
|
||||
// tiktok 404
|
||||
'https://www.tiktok.com/@',
|
||||
];
|
||||
|
|
|
@ -155,7 +155,7 @@ class TwitterClient
|
|||
throw $e;
|
||||
}
|
||||
}
|
||||
} else if ($operation == 'By list ID') {
|
||||
} elseif ($operation === 'By list ID') {
|
||||
$id = $query['listId'];
|
||||
} else {
|
||||
throw new \Exception('Unknown operation to make list tweets');
|
||||
|
@ -348,6 +348,11 @@ class TwitterClient
|
|||
// Grab the first error message
|
||||
throw new \Exception(sprintf('From twitter api: "%s"', $response->errors[0]->message));
|
||||
}
|
||||
if (!isset($response->data->user_by_screen_name->list)) {
|
||||
throw new \Exception(
|
||||
sprintf('Unable to find list in twitter response for %s, %s', $screenName, $listSlug)
|
||||
);
|
||||
}
|
||||
$listInfo = $response->data->user_by_screen_name->list;
|
||||
$this->data[$screenName . '-' . $listSlug] = $listInfo;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue