Skip to content

fix: (follow up of #8317 PR) respect Hide Sharing Actions setting for community posts#8891

Merged
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
aditya0155:fix/hide-sharing-actions-community-posts
Mar 28, 2026
Merged

fix: (follow up of #8317 PR) respect Hide Sharing Actions setting for community posts#8891
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
aditya0155:fix/hide-sharing-actions-community-posts

Conversation

@aditya0155
Copy link
Copy Markdown
Contributor

@aditya0155 aditya0155 commented Mar 27, 2026

Pull Request Type

  • Bugfix

Related issue

Follow-up to #8317 -> addresses reviewer feedback regarding the "Hide Sharing Actions" setting.
closes #7136 (the share button feature was added in #8317, this PR fixes a missing setting check)

Description

The share button I added to community posts in #8317 doesn't get hidden when "Hide Sharing Actions" is enabled in Distraction Free settings. This fixes that by adding the same v-if check used by the other share buttons throughout the app.

Screenshots

Hide-Setting-Working.mp4

Testing

  1. Open FreeTube and navigate to a channel with community posts (e.g., https://www.youtube.com/channel/UCQeRaTukNYft1_6AZPACnog)
  2. Go to the Posts tab
  3. Verify the share button is visible next to community posts
  4. Go to Settings → Distraction Free Settings → Hide Sharing Actions and enable it
  5. Go back to the channel's Posts tab
  6. Verify the share button is now hidden on community posts
  7. Disable the setting again and verify the share button reappears

Desktop

  • OS: Windows 11
  • OS Version: Windows 11 24H2 (OS Build 26100.7171)
  • FreeTube version: 0.23.15 (development build)

Additional context

This is a minimal 2-line change:

  1. Added v-if="!hideSharingActions" to the <FtShareButton> in the template
  2. Added a computed property hideSharingActions reading from store.getters.getHideSharingActions

No other files need modification -> the store getter is auto-generated from the existing hideSharingActions key in settings.js.

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 27, 2026
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) March 27, 2026 09:14
@FreeTubeBot FreeTubeBot merged commit f99dbdf into FreeTubeApp:development Mar 28, 2026
6 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 28, 2026
@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Copy Markdown
Member

@aditya0155 thanks for sending in this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Add Sharing actions to Community posts

6 participants