Repository navigation
Only show link shares for the current user - #22285
Conversation
Currently we have no way to display multiple links in the UI. So just display the link share for the current user. Fixes #22275
|
👍 makes sense Note: the web UI was never intended to display more than one link share. Maybe it will change one day |
Yeah I know. We need to think about that. Even mutliple link shares for 1 user would eventually make sense in my view... since i want to share a link to a user... so I can unshare when I want. But that is a whole other discussion ;) |
|
The described behavior is now in place, but it looks weird, because the symbol in the files table shows the link icon even if the user didn't have a link share (but other users do). |
|
The link icon come from the summarized response from ajax.php (loadIcon), is the new API returning link shares there ? Make sure it's filitered to the current user. (for now) |
|
aaah warg... stupid ajax.... Let me see if that is fixable... |
|
Ok fixed. I'm not really happy with this all... but I think for now it is the best we can do... |
|
aaah mmm... this does mean that is a file is unshared from a user we should remove all their link shares... |
|
Will add |
|
Aaah mm no... that won't scale properly... since if user1 shares a file with a group with 1000 users we have to check for each of those users if have to remove the share. Mmmm let me think about this... |
There was a problem hiding this comment.
missing ` around the column name
Make sure we do not show an icon if we can't display a share
|
Issue of the invisible links raised in #22295 Lets get this in. |
|
Now the overview never shows the chain icon and only updates the chain icon (in the folder thumbnail and the inline text) when the sidebar is opened and the shares are loaded. |
|
@MorrisJobke mmm strange all works here... |
|
Actually the indicator isn't even for outgoing share, it's from the incoming share. The getItemStatuses call returns an empty set. |
|
Regarding the original issue, I also tested resharing a subdir: user1 shared "test" with user2, user2 shares "test/sub" with link, then user1 shares "test/sub" with link too. It works correctly, every user sees the correct link share. |
|
Yes I see this now as well. It is due to the new reshare behaviour. If you check on master there is also no link icon.. |
|
Ok lets move forward with this PR. The issue Morris found was actually a differnt issue that is also present on current master. It is a result of using the old ajax endpoint for the share info. I'll raise a separate ticket for this. This does fix the issue it was ment to fix. |
|
I agree with @rullzer, the issue of seeing the wrong link share is much more critical than the missing indicator. 👍 @MorrisJobke do you agree ? |
|
Seems to work. Code looks as good as code in |
Only show link shares for the current user
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |


Currently we have no way to display multiple links in the UI.
So just display the link share for the current user.
Fixes #22275
CC: @nickvergessen @PVince81 @schiesbn @MorrisJobke