Default pinned topic does not show due to policy plugin

Strangely enough, re-enabling the plugin restores the situation to normal. I’m not sure what to do with this.

I guess this topic will serve for future reference, so here it is: if some topic “disappears” from anonymous view, and you have a post using the discourse-policy plugin…

  1. disable the plugin – if that does not work: remove it from the container’s YAML configuration file and rebuild.
  2. edit the post using [policy] tag so that it’s rebaked and disabled (maybe rebuild HTML is enough?)
  3. restore the plugin.

Tadaa! Some magic happened.