Added support for image descriptions and multiple image posts to external services

This commit is contained in:
Michael 2019-08-05 16:27:45 +00:00
parent a507963c7f
commit bdc07b4213
2 changed files with 39 additions and 1 deletions

View file

@ -709,4 +709,22 @@ class Photo extends BaseObject
$guid = substr($guid, 0, -2);
return $guid;
}
/**
* Tests if the picture link points to a locally stored picture
*
* @param string $name Picture link
* @return boolean
* @throws \Exception
*/
public static function isLocal($name)
{
$guid = self::getGUID($name);
if (empty($guid)) {
return false;
}
return DBA::exists('photo', ['resource-id' => $guid]);
}
}