From f371d7dffbfb10eb42d9caa1eee0f2a3633537ff Mon Sep 17 00:00:00 2001 From: Ulf Rompe Date: Thu, 31 Jul 2025 18:04:15 +0200 Subject: [PATCH] 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 --- src/OsmUserInfo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OsmUserInfo.ts b/src/OsmUserInfo.ts index f6d94c7..af98a17 100644 --- a/src/OsmUserInfo.ts +++ b/src/OsmUserInfo.ts @@ -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 } -} \ No newline at end of file +}