Commit bd6ecd615ec2c64d523d70866eafddeae013bd32
1 parent
0f14fca1
Exists in
software_as_organization
adjust profile_controller extension
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
src/noosfero-spb/software_communities/lib/ext/profile_controller.rb
... | ... | @@ -55,10 +55,9 @@ class ProfileController |
55 | 55 | |
56 | 56 | def hit_view_page |
57 | 57 | if profile |
58 | - community = profile | |
59 | - community.hit unless user_is_a_bot? || | |
60 | - already_visited?(community) || | |
61 | - community.class != Community | |
58 | + profile.hit unless user_is_a_bot? || | |
59 | + already_visited?(profile) || | |
60 | + !profile.kind_of?(Software) | |
62 | 61 | end |
63 | 62 | end |
64 | 63 | end | ... | ... |