twentytwokhz / quote-of-the-day

An Obsidian plugin to insert random quotes as Markdown.
MIT License
41 stars 5 forks source link

[BUG] QOTD stops working after obsidian has been open for a long time #12

Open ScottKirvan opened 1 year ago

ScottKirvan commented 1 year ago

Describe the bug In my obsidian docs, when I've had obsidian open for a long time (like not shutting it down before the next day), I've noticed that the {{qotd}} tag doesn't expand. After restarting Obsidian, the tag expands normally.

To Reproduce Steps to reproduce the behavior:

  1. in my case, I have {{qotd}} in my daily note template, so first, I create a daily note (all works fine)
  2. keep obsidian open for a long time (maybe until the next day?) and create a new daily note
  3. the tag will not expand
  4. restart obsidian
  5. reopen the daily note with the tag that didn't expand
  6. the note expands as originally expected.

Expected behavior The {{qotd}} tag should expand regardless of how long obsidian has been up and running

Screenshots n/a

Summary NOTE: I do not need to have created a QOTD first before waiting a long time to create the second. If I've never created a quote, but obsidian has been left open and running for a long time, the tag doesn't expand.

I hope the fact that this appears time based will provide some clue on the cause. Thanks!

sephraim commented 8 months ago

I experience this same issue. {{qotd}} is in my daily notes template but won't expand for new notes until I close / reopen Obsidian.

ShaoyiZhang commented 6 months ago

I experienced the same issue and close/reopen Obsidian worked for me.

DerekBT commented 5 months ago

Same issue here. And another one: sometimes the guote 'Oops, I did it again' by Britney Spears (aptly tagged as #error) is used, and it is used over and over again. Is this an Easter-Egg or is it an error message?

twentytwokhz commented 3 months ago

@DerekBT Apologies for the delay, that is indeed the default error message. It seems there are some issues in regards to the integration with the underlying quotes api => https://github.com/lukePeavey/quotable

I am working on an alternate solution

DerekBT commented 3 months ago

Thx for the response Florin,

and best of luck! I appreciate it.

have a good day, greetings from Holland, Derek.

Derek Verweij

Sent with Proton Mail secure email.

On Sunday, 25 August 2024 at 08:21, Florin Bobiș @.***> wrote:

@.***(https://github.com/DerekBT) Apologies for the delay, that is indeed the default error message. It seems there are some issues in regards to the integration with the underlying quotes api => https://github.com/lukePeavey/quotable

I am working on an alternate solution

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>