FEATURE: Make max number of favorite configurable (PR #13480)

It used to be hardcoded to 2 and now it uses max_favorite_badges site setting. When zero, it disables favorite badges.

desktop and mobile with max_favorite_badges = 3

desktop and mobile with max_favorite_badges = 5

desktop and mobile with max_favorite_badges = 0 (fallback to the old behavior)

GitHub

That line is getting a bit too long? Any chances you could split it?