Internal optimisations and additional flags for Photo/Video

This commit is contained in:
Deon George
2020-01-05 00:28:00 +11:00
parent 93364ab53a
commit 1ffc2d994e
19 changed files with 402 additions and 279 deletions

View File

@@ -11,7 +11,7 @@ class Video extends Abstracted\Catalog
public function getIDLinkAttribute()
{
return $this->HTMLLinkAttribute($this->id,url('v/info').'/');
return $this->HTMLLinkAttribute($this->id,'v/info');
}
public function getHtmlImageURL()
@@ -124,16 +124,6 @@ class Video extends Abstracted\Catalog
return isset($data[$key]) ? $data[$key] : NULL;
}
public function setDateCreated()
{
$this->date_created = $this->property('creationdate');
}
public function setDateCreatedAttribute($value)
{
$this->attributes['date_created'] = strtotime($value);
}
public function setLocation()
{
$this->gps_lat = $this->property('gps_lat');
@@ -172,8 +162,8 @@ class Video extends Abstracted\Catalog
public function setSignature()
{
$this->signature = $this->property('signature');
$this->file_signature = md5_file($this->file_path());
parent::setSignature();
$this->identifier = $this->property('identifier');
}