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:
parent
d9e4c7d198
commit
f371d7dffb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue