File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1522,7 +1522,9 @@ public function api_tag_timelines( $request ) {
15221522 $ args ['tag ' ] = $ request ->get_param ( 'hashtag ' );
15231523
15241524 $ ppp_param = $ request ->get_param ( 'limit ' );
1525- if ( $ ppp_param != null ) { $ args ['posts_per_page ' ] = $ ppp_param ; }
1525+ if ( null !== $ ppp_param ) {
1526+ $ args ['posts_per_page ' ] = $ ppp_param ;
1527+ }
15261528
15271529 $ args = apply_filters ( 'mastodon_api_timelines_args ' , $ args , $ request );
15281530
@@ -1604,19 +1606,19 @@ public function api_search( $request ) {
16041606 $ q_param = $ request ->get_param ( 'q ' );
16051607 $ categories = get_categories (
16061608 array (
1607- 'orderby ' => 'name ' ,
1609+ 'orderby ' => 'name ' ,
16081610 'hide_empty ' => false ,
1609- 'search ' => $ q_param
1611+ 'search ' => $ q_param,
16101612 )
16111613 );
16121614 foreach ( $ categories as $ category ) {
16131615 $ ret ['hashtags ' ][] = array ( 'name ' => $ category ->name , 'url ' => get_category_link ( $ category ), 'history ' => array () );
16141616 }
16151617 $ tags = get_tags (
16161618 array (
1617- 'orderby ' => 'name ' ,
1619+ 'orderby ' => 'name ' ,
16181620 'hide_empty ' => false ,
1619- 'search ' => $ q_param
1621+ 'search ' => $ q_param,
16201622 )
16211623 );
16221624 foreach ( $ tags as $ tag ) {
You can’t perform that action at this time.
0 commit comments