4 ms·
Judging by the network tab, it looks like they wrote their own. All the api requests fall under the same domain. https://forums.lenovo.com/api/v1/user/getCount
by daxaxelrod 4y ago
Judging by the network tab, it looks like they wrote their own. All the api requests fall under the same domain.
https://forums.lenovo.com/api/v1/user/getCountryByIp https://forums.lenovo.com/api/v1/user/getCountryByIp
https://forums.lenovo.com/api/v1/forums/getForumAccess https://forums.lenovo.com/api/v1/forums/getForumAccess
https://forums.lenovo.com/api/v1/forums/getCurrentForumTrees https://forums.lenovo.com/api/v1/forums/getCurrentForumTrees
https://forums.lenovo.com/api/v1/topic/getTopic?fid=6&tid=5124794&page=1 https://forums.lenovo.com/api/v1/topic/getTopic?fid=6&tid=51...
Also interesting that they have no auth requirement on the getCountryByIp route
- tyingq 4y agoThey seem to consistently mis-spell "community" in the code, which is kind of interesting: var __currentForum = window.CommuntiyForums&&CommuntiyForums.findCommuntiyHomepageByUrlPath()||''; if(__currentForum&&__currentForum.hit){ lmdBrandVal = "Forum Details:"+ __currentForum.forum.board; }else{ var __websiteInfo = sessionStorage&&sessionStorage.websiteInfo ? sessionStorage.websiteInfo : sessionStorage.currentCommuntiySite; if(__websiteInfo&&JSON.parse(__websiteInfo).board) { lmdBrandVal = "Forum Details:" + JSON.parse(__websiteInfo).board; } }
- zbuf 4y agoI inherited a codebase like this, from a developer coding in their native language. Function names or variables started with a typo, and they just carried on with tab/auto completion from then on. By the time I arrived the damage was wide and it was easier to leave it consistently wrong than try and fix across several codebases.