diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Shares/Domain/Share.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Shares/Domain/Share.cs b/src/slskd/Shares/Domain/Share.cs index 890c8565..464ab074 100644 --- a/src/slskd/Shares/Domain/Share.cs +++ b/src/slskd/Shares/Domain/Share.cs @@ -63,8 +63,11 @@ namespace slskd.Shares var aliasedSegment = LocalPath[(parent.Length + 1)..]; RemotePath = maskedPath.ReplaceFirst(aliasedSegment, Alias); + + Id = Compute.Sha1Hash(RemotePath); } + public string Id { get; init; } public string Alias { get; init; } public bool IsExcluded { get; init; } public string LocalPath { get; init; } |
