ref: 0711761832f4be41bb103cee39cb91d766f67f33
parent: 963900f6a1fce690e901acad6265789d533a2fa0
author: Julien Blanchard <jblanchard@makemusic.com>
date: Fri Apr 14 10:59:11 EDT 2023
Some users don't have display names
--- a/display.c
+++ b/display.c
@@ -93,7 +93,11 @@
Notification notif = notifs[i];
char *username;
- username = esmprint("%s (%s)", notif.displayname, notif.handle);
+ if(strlen(notif.displayname) > 0) {
+ username = esmprint("%s (%s)", notif.displayname, notif.handle);
+ } else {
+ username = notif.handle;
+ }
if(strcmp(notif.type, "reblog") == 0) {
Bprint(&out, "\n⊙ %s retooted\n %s", username,