Channel frontend added
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user