Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9eb3655 authored by David A. Velasco's avatar David A. Velasco
Browse files

Removed constrain to parse only public shares

parent cea7054a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -117,8 +117,10 @@ public class GetRemoteSharesForFileOperation extends RemoteOperation {
					ArrayList<Object> sharesObjects = new ArrayList<Object>();
					for (OCShare share: mShares) {
						// Build the link
						if (( share.getShareLink() == null) &&
								(share.getToken().length() > 0)) {
						if (	share.getShareType() == ShareType.PUBLIC_LINK &&
								share.getShareLink() == null &&
								share.getToken().length() > 0
								) {
							String linkToken = ShareUtils.getSharingToken(
									client.getOwnCloudVersion());
							share.setShareLink(client.getBaseUri() + linkToken +
+1 −3
Original line number Diff line number Diff line
@@ -348,9 +348,7 @@ public class ShareXMLParser {
	}

	private boolean isValidShare(OCShare share) {
		return ((share.getIdRemoteShared() > -1) &&
				(share.getShareType() == ShareType.PUBLIC_LINK)	// at this moment we only care about public shares
				);
		return (share.getIdRemoteShared() > -1);
	}

	private void fixPathForFolder(OCShare share) {