Resolved #3 Added link to selected album

This commit is contained in:
2021-11-27 10:51:30 +01:00
parent 5ef5012224
commit 19db5f3575
3 changed files with 62 additions and 10 deletions

View File

@ -2,6 +2,7 @@
namespace PhotoPrismUpload\Entities;
use Monolog\Logger;
use PhotoPrismUpload\API\LoggerFactory;
class Album
{
@ -16,5 +17,13 @@ class Album
$this->uid = $response['UID'];
$this->slug = $response['Slug'];
$this->title = $response['Title'];
$this->logger = LoggerFactory::create('PhotoPrismUpload.Album');
}
public function getUrlPath(): ?string {
if (empty($this->token)) {
return null;
}
return "/s/{$this->token}/{$this->slug}";
}
}