Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep private links number … private. #2109

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thican
Copy link

@thican thican commented Nov 16, 2024

I guess the title is self explanatory.

IMHO, this value should not be seen for public, unless this is an open instance and therefore, no logged is kind of already logged in.

@thican thican changed the title Keeps private links number … private. Keep private links number … private. Nov 16, 2024
@thican
Copy link
Author

thican commented Nov 16, 2024

I think it should be integrated for milestone 0.14.0, as raised in discussion #2105.

Copy link
Member

@nodiscc nodiscc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still easy to determine the number of private shaares by substracting the number of visible shaares, from the total shaares counter

        $this->assignView('linkcount', $this->container->bookmarkService->count(BookmarkFilter::$ALL));
        $this->assignView('privateLinkcount', $this->container->bookmarkService->count(BookmarkFilter::$PRIVATE));

A better approach would be displaying only the count of public shaares.

Anyway this doesn't hurt, so approving

@nodiscc nodiscc added this to the 0.14.0 milestone Nov 17, 2024
@thican
Copy link
Author

thican commented Nov 17, 2024

It is still easy to determine the number of private shaares by substracting the number of visible shaares, from the total shaares counter

        $this->assignView('linkcount', $this->container->bookmarkService->count(BookmarkFilter::$ALL));
        $this->assignView('privateLinkcount', $this->container->bookmarkService->count(BookmarkFilter::$PRIVATE));

A better approach would be displaying only the count of public shaares.

Oh you’re totally right, I didn’t notice this issue.
Yes this was my objective, only displaying those public ones.

Anyway this doesn't hurt, so approving

Please don’t merge until I (or anybody) fix this for only those public shaares number.

@thican thican force-pushed the keep_private_links_number_private branch from 987ece6 to 14aecaa Compare November 18, 2024 01:07
@thican
Copy link
Author

thican commented Nov 18, 2024

@nodiscc Done.

I allowed myself to display the number of links, whether total, private & public, even if 0, instead of masking the information.

@thican thican force-pushed the keep_private_links_number_private branch from 14aecaa to 4166c6f Compare November 18, 2024 20:41
@thican thican force-pushed the keep_private_links_number_private branch from 4166c6f to 530e58e Compare November 18, 2024 20:52
@thican thican force-pushed the keep_private_links_number_private branch from 530e58e to 58fe58c Compare November 18, 2024 20:53
@thican
Copy link
Author

thican commented Nov 18, 2024

I noticed there is translation feature, no idea if it was required and how to actually update, so my modifications are flawed as I copied them (without the total word that I added).

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

Successfully merging this pull request may close these issues.

2 participants