From eca222151d3496dd353125fbfefedcfe53212c70 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 24 Jul 2022 21:33:45 +0100 Subject: [PATCH] Extract individual groups for posting when replying to crossposted article --- Rocksolid_Light/rocksolid/newsportal.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index 4ca3996..5a625d5 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -338,6 +338,9 @@ function testGroup($groupname) { function get_section_by_group($groupname) { global $CONFIG, $config_dir; $menulist = file($config_dir."menu.conf", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); +// Get first group in Newsgroups + $groupname = preg_split("/( |\,)/", $groupname, 2); + $groupname = $groupname[0]; foreach($menulist as $menu) { if($menu[0] == '#') { continue;