Skip to content

Commit

Permalink
tweak to location:blurred code for profile tags (publiclab#2202)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Feb 2, 2018
1 parent 7fa838c commit 2aa0caa
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,10 @@ def profile
@count_activities_attempted = Tag.tagged_nodes_by_author("replication:*", @user).count
@map_lat = nil
@map_lon = nil
@map_blurred = nil
if @profile_user.has_power_tag("lat") && @profile_user.has_power_tag("lon")
@map_lat = @profile_user.get_value_of_power_tag("lat").to_f
@map_lon = @profile_user.get_value_of_power_tag("lon").to_f
if @profile_user.has_power_tag("blurred")
@map_blurred = @profile_user.get_value_of_power_tag("blurred")
end
@map_lat = @profile_user.get_value_of_power_tag("lat").to_f
@map_lon = @profile_user.get_value_of_power_tag("lon").to_f
@map_blurred = @profile_user.has_tag("location:blurred")
end

if @user.status == 0
Expand Down

0 comments on commit 2aa0caa

Please sign in to comment.