Ocelot-Social-Community / Ocelot-Social

Free and open-source social network for active citizenship.
https://ocelot.social
Other
96 stars 38 forks source link

🔧 [Refactor] Backend: Metascraper Language Detection #8059

Open mahula opened 3 weeks ago

mahula commented 3 weeks ago

Motivation

The current Dependabot Metascraper Bump PR revealed, that the package metascraper-lang-detector we initialy utilized, does not exist in Metascraper v5 anymore. There are no informations on Metascraper side, when and how it has been deprecated and how to migtrate to utilize only their package metascraper-lang to handlelanguage detection as we implemented it (see https://github.com/search?q=repo%3Amicrolinkhq%2Fmetascraper%20metascraper-lang-detector&type=code, https://github.com/microlinkhq/metascraper/tree/HEAD/packages/metascraper-lang, https://metascraper.js.org/)

TODO

We should check whether our Metascraper language detection implementation still works as intended and adapt it to the currently offered approach if necessary.

If the offered approach does not work for us at the moment, we could roll back the metascraper packages to the latest 4.x version (as in the last deployments for the actively running network instances).

Related