-
-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Description / 问题描述
The extension incorrectly identifies the user as logged in on the 51CTO platform even when they are not. This happens because the login detection logic misinterprets data-uid attributes found in the page content (such as other authors' avatars in the blog feed) as the current user's session ID. Consequently, the "Login" link does not appear in the extension interface, showing a fake user (e.g., User_15204399) instead.
Steps to Reproduce / 复现步骤
- Ensure you are logged out of 51CTO (https://blog.51cto.com/).
- Open the COSE extension's publish dialog.
- Observe the status of the 51CTO platform in the list.
Expected Behavior / 预期行为
The extension should correctly detect that the user is not logged in and display a "Login" link/button for 51CTO, allowing the user to click and log in.
Actual Behavior / 实际行为
The extension shows the user as logged in with a generic username (e.g., User_15204399) derived from a random data-uid on the page, and the "Login" link is missing.
Platform / 平台
51CTO
Browser / 浏览器
Chrome
Extension Version / 扩展版本
1.0.8
Environment Details / 环境信息
- OS: macOS
Screenshots / 截图
No response
Additional Context / 补充信息
No response