Skip to content

Commit

Permalink
Update space_api.rb
Browse files Browse the repository at this point in the history
Display usernames aka nicks instead of real names, for privacy/GDPR reasons
  • Loading branch information
Dragast authored Aug 8, 2024
1 parent 56adb1c commit 740ae3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/space_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def add_people_now_present
value: Presence.present_users.count}

if Presence.present_users.count > 0
present_people_reading[:names] = Presence.present_users.map(&:name)
present_people_reading[:names] = Presence.present_users.map(&:username)
end

add_sensor name: :people_now_present, data: present_people_reading
Expand Down

0 comments on commit 740ae3e

Please sign in to comment.