From 4b554256d01d96196949422e1bedb2c38a997f45 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Tue, 29 Oct 2024 09:03:51 -0700 Subject: [PATCH] Restore local poster notification (italicise) in article-flat. --- Rocksolid_Light/common/themes/style.css | 6 ++++++ Rocksolid_Light/rocksolid/lib/message.inc.php | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/common/themes/style.css b/Rocksolid_Light/common/themes/style.css index 47dd0ca..32afe8b 100644 --- a/Rocksolid_Light/common/themes/style.css +++ b/Rocksolid_Light/common/themes/style.css @@ -407,6 +407,12 @@ font-size: 1.0em; } +.short_header_from_with_subject_local_poster { + font-style: italic; + font-family: Arial, Helvetica, sans-serif; + font-size: 1.0em; +} + /* short header From: (on it's own line) */ .short_header_from { margin-top: 0; diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php index 491c7b0..9a68635 100644 --- a/Rocksolid_Light/rocksolid/lib/message.inc.php +++ b/Rocksolid_Light/rocksolid/lib/message.inc.php @@ -570,6 +570,10 @@ function show_header_short($head, $group, $local_poster = false) // If Subject: is longer than this, place From: below Subject: in short short_header $maxsubjectlength = 70; + if (password_verify($CONFIG['thissitekey'] . $head->id, $head->rslight_site)) { + $local_poster = true; + } + echo '
'; if ($head->name != "") { @@ -582,13 +586,16 @@ function show_header_short($head, $group, $local_poster = false) } } + if ($local_poster) { + $displayname = '' . $displayname . ''; + } + // Where to show From in short_headers if (isset($OVERRIDES['short_header_show_from_in_subject']) && $OVERRIDES['short_header_show_from_in_subject'] == true && strlen($head->subject) < $maxsubjectlength) { echo ''; echo htmlspecialchars($head->subject); echo ''; - echo '  (From: ' . $displayname . ')
'; - echo '
'; + echo '  (From: ' . $displayname . ')
'; } else { echo '
'; echo htmlspecialchars($head->subject) . "
";