Toby For a forum with an "all discussions" view like Flarum/esoTalk, the conventional sticky behaviour (pin to top no matter what) becomes problematic when you have more than a few sticky topics...
That is not Esotalk/Flarum fault, it is that specific forum management, or lack thereof. Now, the approach you have taken is a compromise, with the exception that you end up having an odd looking post "float" up and down (because pinned topics have those two lines preview). If those two lines preview were to be eliminated, it would look better.
Again, as I commented on another thread, pinned topics are a management concern, not something for the developer of the forum to worry about. What I am trying to say is, it is hard to stop silliness from happening. :-)
→ ADDENDUM (copied over from separate discussion):
I understand the problem you describe (which, by the way, it is not a problem to be solved by programming, but by the managers of the forums), but that is not what I am recommending.
What I am recommending is to have pinned topics behave the same as a regular topic (not pinned at top, no first few lines preview), when seeing under "All Discussions."
I am also a strong proponent that a pinned topic is what its name means, pinned. Having it behave as pinned only when they have new messages defeats the entire purpose of pinning it. Again, management of the forum should dictate the amount of pinned topics per category/label, and should not be solved by software.