Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Fix footer links being out of order #334

Closed happy-river closed 3 years ago

happy-river commented 3 years ago

This fixes a regression from #333, which caused the footer links to be displayed in a different order than they are given in config.yaml.

The code to merge config dictionaries was converting the lists of keys in the two dictionaries into a set to avoid doing the same work twice, but the set conversion doesn't preserve the order of the keys. The amount of work saved by using a set is not enough to matter, plus it's only done once at startup.