mirror of
https://github.com/friendica/friendica
synced 2025-04-29 02:24:22 +02:00
API: Some more endpoints
This commit is contained in:
parent
a5d7662c97
commit
3bbf543d25
11 changed files with 611 additions and 45 deletions
|
@ -267,13 +267,14 @@ class Post
|
|||
* @param array $selected Array of selected fields, empty for all
|
||||
* @param array $condition Array of fields for condition
|
||||
* @param array $params Array of several parameters
|
||||
* @param bool $user_mode true = post-user-view, false = post-view
|
||||
*
|
||||
* @return boolean|object
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function select(array $selected = [], array $condition = [], $params = [])
|
||||
public static function select(array $selected = [], array $condition = [], $params = [], bool $user_mode = true)
|
||||
{
|
||||
return self::selectView('post-user-view', $selected, $condition, $params);
|
||||
return self::selectView($user_mode ? 'post-user-view' : 'post-view', $selected, $condition, $params);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue