From 740ae3ed146b807e36e8de3df735036042e28bab Mon Sep 17 00:00:00 2001 From: Mario Mishev Date: Thu, 8 Aug 2024 12:09:30 +0000 Subject: [PATCH] Update space_api.rb Display usernames aka nicks instead of real names, for privacy/GDPR reasons --- app/models/space_api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/space_api.rb b/app/models/space_api.rb index 703f173..266abfd 100644 --- a/app/models/space_api.rb +++ b/app/models/space_api.rb @@ -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