mcndt / obsidian-quickshare

📝 An Obsidian plugin for sharing encrypted Markdown notes on the web. Zero configuration required.
MIT License
241 stars 8 forks source link

[Bug] With disabled option 'Use frontmatter', a unshare still adds a text-block quickshare #34

Open ob-tk opened 1 year ago

ob-tk commented 1 year ago

Describe the bug With disabled option Use frontmatter, a unshare still adds a block:

---
quickshare-date: "N/A"
quickshare-url: "Removed"
---

to the original md-file.

To Reproduce Steps to reproduce the behavior:

Expected behavior The absence of any changes in the source file, both a share or unshare note.

Screenshots image 9b5d7da00539c8

Environment (please complete the following information):

ob-tk commented 1 year ago

Logical behavior: if the block exists - update it, even if the option is disabled. If not - don't write anything!