White spaces
This commit is contained in:
parent
0e15715088
commit
dc48f9b8f0
|
@ -108,6 +108,7 @@ class Photo extends BaseFactory
|
||||||
if ($with_posts) {
|
if ($with_posts) {
|
||||||
// retrieve item element for getting activities (like, dislike etc.) related to photo
|
// retrieve item element for getting activities (like, dislike etc.) related to photo
|
||||||
$condition = ['uid' => $uid, 'resource-id' => $photo_id];
|
$condition = ['uid' => $uid, 'resource-id' => $photo_id];
|
||||||
|
|
||||||
$item = Post::selectFirst(['id', 'uid', 'uri', 'uri-id', 'parent', 'allow_cid', 'deny_cid', 'allow_gid', 'deny_gid'], $condition);
|
$item = Post::selectFirst(['id', 'uid', 'uri', 'uri-id', 'parent', 'allow_cid', 'deny_cid', 'allow_gid', 'deny_gid'], $condition);
|
||||||
}
|
}
|
||||||
if (!empty($item)) {
|
if (!empty($item)) {
|
||||||
|
|
|
@ -49,7 +49,7 @@ class Tweets extends BaseApi
|
||||||
|
|
||||||
$data['status'] = [];
|
$data['status'] = [];
|
||||||
|
|
||||||
$count = $this->getRequestValue($request, 'count', 15);
|
$count = $this->getRequestValue($request, 'count', 20, 1, 100);
|
||||||
$count = $this->getRequestValue($request, 'rpp', $count);
|
$count = $this->getRequestValue($request, 'rpp', $count);
|
||||||
$since_id = $this->getRequestValue($request, 'since_id', 0, 0);
|
$since_id = $this->getRequestValue($request, 'since_id', 0, 0);
|
||||||
$max_id = $this->getRequestValue($request, 'max_id', 0, 0);
|
$max_id = $this->getRequestValue($request, 'max_id', 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user