You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shorten-links should apply also after you edit your comment #2264
I did a little bit of digging, and it looks like the shorten-links feature is not being applied to the newly added comments as well. Based on the description of this issue, it sounds like it should, right?
And should shorten-links feature include onNewComments listener or indicate that the page has comments?
Adding this to the shorten-links seems to "fix" the issue for links in the comments. However, it may not work for links outside of the comment/discussion box.
include: [
pageDetect.hasComments
]
I am pretty new to repo so I might not be heading in the right direction, right away, haha.
If include is missing, it will be applied to every page. Adding it might fix it because explicitly specifying that automatically includes onNewComments.
Activity
fregante commentedon Apr 11, 2020
This should use the new helper in #2992
arjunvegda commentedon Jul 19, 2020
This issue seems very interesting!
I did a little bit of digging, and it looks like the
shorten-linksfeature is not being applied to the newly added comments as well. Based on the description of this issue, it sounds like it should, right?And should
shorten-linksfeature includeonNewCommentslistener or indicate that the page has comments?Adding this to the
shorten-linksseems to "fix" the issue for links in the comments. However, it may not work for links outside of the comment/discussion box.I am pretty new to repo so I might not be heading in the right direction, right away, haha.
fregante commentedon Jul 20, 2020
If
includeis missing, it will be applied to every page. Adding it might fix it because explicitly specifying that automatically includesonNewComments.You can try just adding
onNewCommentslike in: https://github.com/sindresorhus/refined-github/blob/0fa514dbeeab6395ef095cff80beac41443a6574/source/features/hide-inactive-deployments.tsx#L27-L29