Citations within footnotes in LaTeX

Writing a tutorial on programming, I needed citations within footnotes. Luckily, the biblatex package added support (see first comment on the sourceforge page of biblatex) for citations within footnotes in 2011. Apparently, this is not straightforward, since a low-level citation command has to be used to satisfy LaTeX. Anyway, this is now done automatically by the
biblatex package, so I didn’t have to make any changes.

In my document, I only use the LaTeX command
\autocite which behavior I can define in the document preamble. In my preamble I have:

You will notice that footnote 2 is a citation from within the normal text. Since I’ve specified
autocite=footnote in the preamble, this is rendered as a footnote. However, the citation from within the footnote 1 is rendered in-line.