mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Fix sharing integration (#7198)
fix https://github.com/FreshRSS/FreshRSS/issues/7192
This commit is contained in:
committed by
GitHub
parent
50adb55982
commit
ca42b0b8cc
@@ -179,10 +179,10 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
|
||||
$share = $_POST['share'] ?? null;
|
||||
if (is_array($share)) {
|
||||
$share = array_filter($share, fn($value, $key): bool =>
|
||||
is_string($key) && is_array($value) &&
|
||||
is_int($key) && is_array($value) &&
|
||||
is_array_values_string($value),
|
||||
ARRAY_FILTER_USE_BOTH);
|
||||
/** @var array<string,array<string,string>> $share */
|
||||
/** @var array<int,array<string,string>> $share */
|
||||
FreshRSS_Context::userConf()->sharing = $share;
|
||||
FreshRSS_Context::userConf()->save();
|
||||
invalidateHttpCache();
|
||||
|
||||
@@ -52,7 +52,7 @@ declare(strict_types=1);
|
||||
* @property bool $show_nav_buttons
|
||||
* @property 'ASC'|'DESC' $sort_order
|
||||
* @property 'id'|'date'|'link'|'title'|'rand' $sort
|
||||
* @property array<string,array<string,string>> $sharing
|
||||
* @property array<int,array<string,string>> $sharing
|
||||
* @property array<string,string> $shortcuts
|
||||
* @property bool $sides_close_article
|
||||
* @property bool $sticky_post
|
||||
|
||||
Reference in New Issue
Block a user