Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👽️ Limit number of tags in matters to 5 #249

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

williamchong
Copy link
Member

@williamchong williamchong commented Mar 20, 2023

Fixes #248

@williamchong williamchong requested review from nnkken and nwingt March 20, 2023 08:10
return array_map( $func, $post_tags );
$result = array_map( $func, $post_tags );
if ( $limit ) {
$result = array_slice( $result, 0, 5 );
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this utilize $limit?

Suggested change
$result = array_slice( $result, 0, 5 );
$result = array_slice( $result, 0, $limit );

@williamchong williamchong requested a review from nnkken March 21, 2023 07:19
@williamchong williamchong merged commit 012eede into likecoin:master Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TOO_MANY_TAGS_FOR_ARTICLE
2 participants