Find Fediverse links in classic OSM profiles

If a user didn't bother to configure the new "social links" on OSM yet,
the bot didn't scan the links in the classic page data.
It does so now as the `content-inner` div seems to be available
in any case.

Fixes #8
This commit is contained in:
Ulf Rompe 2025-07-31 18:04:15 +02:00
parent d9e4c7d198
commit f371d7dffb

View file

@ -109,7 +109,7 @@ export default class OsmUserInfo {
fullPage.innerHTML = fullPageStr
const contentbody = fullPage.getElementsByClassName("content-body")
const content = contentbody.item(0)
const div = Array.from(content.getElementsByClassName("row"))[0]
const div = Array.from(content.getElementsByClassName("content-inner"))[0]
if(!div){
return []
@ -147,4 +147,4 @@ export default class OsmUserInfo {
return this._userData
}
}
}