mirror of
https://github.com/cloudreve/cloudreve.git
synced 2026-06-28 06:46:08 +00:00
fix(share): download on folder share wrongly not counted (#3196)
This commit is contained in:
@@ -302,9 +302,7 @@ func (n *shareNavigator) FollowTx(ctx context.Context) (func(), error) {
|
||||
func (n *shareNavigator) ExecuteHook(ctx context.Context, hookType fs.HookType, file *File) error {
|
||||
switch hookType {
|
||||
case fs.HookTypeBeforeDownload:
|
||||
if n.singleFileShare {
|
||||
return n.shareClient.Downloaded(ctx, n.share)
|
||||
}
|
||||
return n.shareClient.Downloaded(ctx, n.share)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user