aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2025-09-25 21:41:13 +0200
committerGravatar GitHub <noreply@github.com> 2025-09-25 21:41:13 +0200
commit960c6c88a5f9b9e07f933147feb9717b0133988d (patch)
treeb25460ac8d2e6a6bca87fb4148f4883e5b1f54f2 /app/views
parentf612a560d28a31095c27c130e84bf6ff39f061f5 (diff)
Fix: sharing button in top line when 0 entries (#8010)
ref #8001 Changes proposed in this pull request: - count entries, do not show share button when 0 sharing services How to test the feature manually: 1. having 0 sharing services 2. enable the sharing button in top line (settings -> display> 3. go to normal view -> sharing button should not be displayed in the article entry 4. add 1 sharing service 5. normal view -> sharing button is be displayed
Diffstat (limited to 'app/views')
-rw-r--r--app/views/helpers/index/normal/entry_header.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml
index 7c65d6bbf..f1c5e22f5 100644
--- a/app/views/helpers/index/normal/entry_header.phtml
+++ b/app/views/helpers/index/normal/entry_header.phtml
@@ -4,7 +4,7 @@
$topline_read = FreshRSS_Context::userConf()->topline_read;
$topline_favorite = FreshRSS_Context::userConf()->topline_favorite;
$topline_myLabels = FreshRSS_Context::userConf()->topline_myLabels;
- $topline_sharing = FreshRSS_Context::userConf()->topline_sharing;
+ $topline_sharing = FreshRSS_Context::userConf()->topline_sharing && (count(FreshRSS_Context::userConf()->sharing) > 0);;
$topline_website = FreshRSS_Context::userConf()->topline_website;
$topline_thumbnail = FreshRSS_Context::userConf()->topline_thumbnail;
$topline_summary = FreshRSS_Context::userConf()->topline_summary;