Timeline for "follow" link glitches to "You’re no longer following this question"
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 3, 2020 at 4:41 | comment | added | Makyen | @SamuelLiew As with most things, a blanket statement isn't accurate. If a userscript should use those functions depends on what it's doing. Some userscripts should be using them; most shouldn't be using them. Some userscripts might even choose to prevent the page from using those function and choose to only permit the userscript to make calls to those functions. What can and should be said is that there are potential side-effects from those functions being called more than once while certain elements exist in the DOM. Any script which uses those functions needs to be aware of the issues. | |
May 27, 2020 at 7:17 | comment | added | Samuel Liew |
Also, on any page that calls init or fullInit more than once, you get the above error when following any post. Since the function is already used by the site itself, no userscript should be using this.
|
|
May 27, 2020 at 7:16 | comment | added | Samuel Liew |
@Makyen I just found out that init() calls fullInit() under the hood, for logged-in users, so it makes no difference, and that any userscript using either functions need to rethink whether it is really necessary to call this function.
|
|
May 26, 2020 at 10:09 | comment | added | Makyen |
Closely related to what @SamuelLiew reports, I've also seen similar double AJAX call issues on other UI elements when StackExchange.question.init() is called by a userscript, in at least some instances. However, I haven't specifically looked at if it affects follow/following.
|
|
May 26, 2020 at 9:17 | comment | added | Samuel Liew |
You might want to check if the user is using any userscripts that is calling StackExchange.question.fullInit() , since that causes the follow link to trigger twice, once to follow and immediately unfollow after.
|
|
May 26, 2020 at 8:39 | history | answered | Yaakov EllisStaff | CC BY-SA 4.0 |