From d20e908f492cce8037e7a9f315466889fde33777 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Fri, 1 Apr 2022 18:09:24 +0000 Subject: [PATCH] Show account on span title FossilOrigin-Name: 37c65ef4659592567dcf450f69fd37c81f46ab84ee9ff30921a9dd77991b334c --- src/notifications.c | 3 ++- static/notification_action.html | 2 +- static/notification_compact.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/notifications.c b/src/notifications.c index 4c6a2bf..591c5e0 100644 --- a/src/notifications.c +++ b/src/notifications.c @@ -61,6 +61,7 @@ char* construct_notification_action(struct mstdnt_notification* notif, int* size s = easprintf(¬if_html, data_notification_action_html, notif->account->avatar, + notif->account->acct, notif->account->display_name, notification_type_compact_str(notif->type), notification_type_svg(notif->type), @@ -85,12 +86,12 @@ char* construct_notification_compact(struct mstdnt_notification* notif, int* siz notif->status->replies_count, notif->status->reblogs_count, notif->status->favourites_count); - size_t s = easprintf(¬if_html, data_notification_compact_html, notif->account->avatar, /* If there is an icon, the text doesn't shift up relative to the SVG, this is a hack on the CSS side */ strlen(type_svg) == 0 ? "" : "-with-icon", + notif->account->acct, notif->account->display_name, type_str, type_svg, diff --git a/static/notification_action.html b/static/notification_action.html index c367fd5..3d5660f 100644 --- a/static/notification_action.html +++ b/static/notification_action.html @@ -9,7 +9,7 @@
- %s + %s %s %s
diff --git a/static/notification_compact.html b/static/notification_compact.html index d898311..4f7f241 100644 --- a/static/notification_compact.html +++ b/static/notification_compact.html @@ -6,7 +6,7 @@
- %s + %s %s %s