mirror of
https://github.com/friendica/friendica
synced 2025-05-01 23:04:24 +02:00
Added support for image descriptions and multiple image posts to external services
This commit is contained in:
parent
a507963c7f
commit
bdc07b4213
2 changed files with 39 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue