Channel frontend added

This commit is contained in:
Michael 2023-09-20 21:39:05 +00:00
parent 1ec8b62b58
commit 42e22ed91b
4 changed files with 224 additions and 0 deletions

View file

@ -61,6 +61,18 @@ class Channel extends \Friendica\BaseRepository
return $this->exists(['id' => $id, 'uid' => $uid]);
}
/**
* Delete the given channel
*
* @param integer $id
* @param integer $uid
* @return boolean
*/
public function deleteById(int $id, int $uid): bool
{
return $this->db->delete('channel', ['id' => $id, 'uid' => $uid]);
}
/**
* Fetch all user channels
*