Version 4.7.0

This commit is contained in:
Neo committed 2025-12-19 16:00:35 -08:00
1 parent 517a5e1f70
commit 8ba7d43898
1933 files changed
+65613 -11332

No files matched your search

+7 -2
View File
@@ -106,6 +106,11 @@ class _Twitter extends PromoteAbstract
public function canPostToPage()
{
$twitter = \IPS\Login\Handler::findMethod('IPS\Login\Handler\Oauth1\Twitter');
if ( $twitter === NULL )
{
return FALSE;
}
return $twitter->hasWritePermissions( $this->settings['token'], $this->settings['secret'] );
}
@@ -194,8 +199,8 @@ class _Twitter extends PromoteAbstract
{
$photos = $promote->imageObjects();
$mediaIds = array();
if ( \count( $photos ) )
if ( \is_array( $photos ) and \count( $photos ) )
{
try
{