mirror of
https://github.com/friendica/friendica
synced 2025-04-25 02:30:11 +00:00
Channels: Larger fields, better error handling
This commit is contained in:
parent
e558a83783
commit
be394b573d
9 changed files with 51 additions and 40 deletions
|
@ -346,6 +346,10 @@ class Timeline extends BaseModule
|
|||
|
||||
$items = [];
|
||||
$result = $this->database->select('post-engagement', ['uri-id', 'created', 'owner-id', 'comments', 'activities'], $condition, $params);
|
||||
if ($this->database->errorNo()) {
|
||||
throw new \Exception($this->database->errorMessage(), $this->database->errorNo());
|
||||
}
|
||||
|
||||
while ($item = $this->database->fetch($result)) {
|
||||
$items[$item['uri-id']] = $item;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue