mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +02:00
Channel frontend added
This commit is contained in:
parent
1ec8b62b58
commit
42e22ed91b
4 changed files with 224 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue