From 68737b0f886f64150161e5204ae99511fec0baf2 Mon Sep 17 00:00:00 2001 From: Matt Morey Date: Sun, 5 Apr 2020 18:31:43 -0400 Subject: [PATCH] display actual usernames --- fbridge.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fbridge.py b/fbridge.py index 3f830ec..d58a3ca 100644 --- a/fbridge.py +++ b/fbridge.py @@ -37,7 +37,9 @@ def onMessage(self, author_id, message_object, thread_id, thread_type, **kwargs) if author_id in users: username = users[author_id] else: - username = author_id + u = self.fetchUserInfo(author_id)[author_id] + username = u.name + users[author_id] = username ## Set a gateway from the thread_id gateway = "FBgateway"