Browse Source

Fix aid filling when empty

pull/238/head
Timothée Jaussoin 9 years ago
parent
commit
984ae615af
  1. 5
      app/models/postn/Postn.php

5
app/models/postn/Postn.php

@ -254,6 +254,11 @@ class Postn extends Model {
if($entry->entry->geoloc->lon != 0)
$this->__set('lon', (string)$entry->entry->geoloc->lon);
}
// We fill empty aid
if($this->isMicroblog() && empty($this->aid)) {
$this->__set('aid', $this->origin);
}
}
private function typeIsPicture($type) {

Loading…
Cancel
Save