config/patches/base/ipfs/ipfs-allow-publish-with-ipns-mounted.patch

15 lines
459 B
Diff
Raw Normal View History

2022-02-05 21:42:36 +02:00
diff --git a/core/coreapi/coreapi.go b/core/coreapi/coreapi.go
2022-12-05 21:46:53 +02:00
index fb54917..9852989 100644
2022-02-05 21:42:36 +02:00
--- a/core/coreapi/coreapi.go
+++ b/core/coreapi/coreapi.go
2022-12-05 21:46:53 +02:00
@@ -198,9 +198,6 @@ func (api *CoreAPI) WithOptions(opts ...options.ApiOption) (coreiface.CoreAPI, e
2022-02-05 21:42:36 +02:00
}
2022-12-05 21:46:53 +02:00
subAPI.checkPublishAllowed = func() error {
2022-02-05 21:42:36 +02:00
- if n.Mounts.Ipns != nil && n.Mounts.Ipns.IsActive() {
- return errors.New("cannot manually publish while IPNS is mounted")
- }
return nil
}