Add leofinance into app whitelist in CanonicalLinker
Problem
LeoFinance app meets an issue in canonical url parsing since it doesn't include the canonical_url
field into posts' metadata, which leads to a wrong canonical link when parsed from hive.blog.
For example, the canonical link in the post https://hive.blog/hive-167922/@leofinance/the-daily-leo-1-bitcoin-shortages-fomo-setting-in-eth-exploding-and-the-beginning-of-an-alt-rally, should be https://leofinance.io/@leofinance/the-daily-leo-1-bitcoin-shortages-fomo-setting-in-eth-exploding-and-the-beginning-of-an-alt-rally
because it's published in LeoFinance app, but it didn't parse correctly since the canonical_url
field is not added, as shown in the below screenshot.
Solution
One quick solution to fix this is to add leofinance
app into the whitelist of the CanonicalLinker's app whitelist, so the canonical link will be generated with https://leofinance.io as the domain when the app
field in post metadata is set to leofinance