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

Hide banned users from profile (fixes #1279) #1403

Merged
merged 2 commits into from
Jun 7, 2015

Conversation

kaberett
Copy link
Contributor

Prevents banned users from appearing in watch/trust/subscribe lists
on profile pages. (Thanks Dre and Jen! <3)

Prevents banned users from appearing in watch/trust/subscribe lists
on profile pages.
my %banned_users = map { $_ => 1 } @$banned;

# remove banned users from lists to display
@$_ = grep ( !defined $banned_users{ $_ }, @$_ )
Copy link
Member

Choose a reason for hiding this comment

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

You probably want exists here instead of defined.

Also, our style is to use grep { } (with braces instead of parenthesis).

@zorkian
Copy link
Member

zorkian commented May 31, 2015

As this is a change in behavior, would be great to get confirmation from @zarhooie or @rahaeli that this is a desired change.

@kareila
Copy link
Member

kareila commented May 31, 2015

@rahaeli opened #1279 which this is the fix for. I would call that an endorsed change in behavior.

@kareila
Copy link
Member

kareila commented May 31, 2015

Fixes #1279.

(This needs to be on a line by itself in a comment for Github to recognize it and close the issue when the PR is accepted.)

Fixes dreamwidth#1279

Prevents banned users from appearing on watch/trust/subscribe lists
on profile pages.
afuna added a commit that referenced this pull request Jun 7, 2015
@afuna afuna merged commit fbe709e into dreamwidth:develop Jun 7, 2015
@kaberett kaberett deleted the hide-banned-users-from-profile branch November 7, 2015 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants