Skip to content

Commit 2f8928b

Browse files
committed
Fix addAuthorNameToInboxNotifications link extraction
1 parent e5470ba commit 2f8928b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sox.features.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@
13711371
function setAuthorName(node) {
13721372
//for https://github.com/soscripted/sox/issues/347
13731373
const prependToMessage = Object.keys(settings).length !== 0 ? settings.addNameBeforeMessageOrAtTop : false;
1374-
const link = node.firstElementChild.href;
1374+
const link = node.querySelector('a').href;
13751375
if (!link) return;
13761376
let id;
13771377
const matches = {

sox.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @namespace https://github.com/soscripted/sox
44
// @homepage https://github.com/soscripted/sox
55
// @homepageURL https://github.com/soscripted/sox
6-
// @version 2.8.6 DEV
6+
// @version 2.8.7 DEV
77
// @description Extra optional features for Stack Overflow and Stack Exchange sites
88
// @contributor ᴉʞuǝ (https://stackoverflow.com/users/1454538/, https://github.com/mezmi)
99
// @contributor ᔕᖺᘎᕊ (https://stackexchange.com/users/4337810/, https://github.com/shu8)

0 commit comments

Comments
 (0)