wafrn instance bluesky labeler (mirror of https://git.jbc.lol/jbcrn/wadge)

thing 2

+3 -6
+3 -6
index.js
··· 127 127 return; 128 128 } 129 129 130 - const res = await fetch(`https://wf.jbc.lol/api/user?id=${u2}`, { 131 - method: 'GET', 132 - headers: { 133 - Authorization: `Bearer ${this._token}` 134 - }, 130 + const res = await fetch(`https://${ifWafrn.instHost}/api/user?id=${ifWafrn.name}`, { 131 + method: 'GET' 135 132 }) 136 133 137 134 if (!res.ok) { 138 135 console.log(await res.text()); 139 - await this.send("", 'There is an error while getting your user info. You might want to wait a bit.', postNotif.posts[0].privacy, "", postNotif.users.map(t => t.id), postNotif.posts[0].id); 136 + await this.send("", 'There is an error while getting your user info. You might want to wait a bit. You also need to make sure your profile is visible to public as it\'s the only way Wadge can detect it, sadly, but you can just reinstate it later.', postNotif.posts[0].privacy, "", postNotif.users.map(t => t.id), postNotif.posts[0].id); 140 137 return; 141 138 } 142 139