depot/packages/networking/ipfs/ipfs-allow-publish-with-ipns-mounted.patch

15 lines
463 B
Diff
Raw Normal View History

2021-06-05 23:59:06 +03:00
diff --git a/core/coreapi/coreapi.go b/core/coreapi/coreapi.go
2023-10-27 20:20:19 +03:00
index 81d05b58d..66460326f 100644
2021-06-05 23:59:06 +03:00
--- a/core/coreapi/coreapi.go
+++ b/core/coreapi/coreapi.go
2023-10-27 20:20:19 +03:00
@@ -205,9 +205,6 @@ func (api *CoreAPI) WithOptions(opts ...options.ApiOption) (coreiface.CoreAPI, e
2021-06-05 23:59:06 +03:00
}
2023-10-27 20:20:19 +03:00
subAPI.checkPublishAllowed = func() error {
2021-06-05 23:59:06 +03:00
- if n.Mounts.Ipns != nil && n.Mounts.Ipns.IsActive() {
- return errors.New("cannot manually publish while IPNS is mounted")
- }
return nil
}