SENPAY98K Posted December 15, 2021 Report Posted December 15, 2021 Hi, im trying to achieve the task of Rate up content in your Activity Feed My code works fine and it really rate up the status, but in the steam badge it does not detect that. @Dr. McKay what you think is wrong ? // Rate up the status var optionRateActivityPost = { form: { sessionid: sessionID, vote: 1, count: 6, feature2: -1, newestfirstpagination: true }, headers: { Host: 'steamcommunity.com', Origin: 'https://steamcommunity.com', Referer: 'https://steamcommunity.com/profiles/'+RatePostSteamID64+'/home/' }, json: true }; var postURL08 = 'https://steamcommunity.com/comment/UserStatusPublished/voteup/'+RatePostSteamID64+'/1639600415/'; community.httpRequestPost(postURL08, optionRateActivityPost, function (err, res, data) { if (err) { console.log(' [%s] TASK08: Rate Activity Post: FAIL'.red, logOnOptions.accountName); } if (!err) { console.log(' [%s] TASK08: Rate Activity Post: DONE'.green, logOnOptions.accountName); } }, "steamcommunity" ); Quote
Dr. McKay Posted December 15, 2021 Report Posted December 15, 2021 I dunno, maybe there's some second request that gets sent when you rate up some content that actually triggers the badge activity. Quote
SENPAY98K Posted December 16, 2021 Author Report Posted December 16, 2021 (edited) 12 hours ago, Dr. McKay said: I dunno, maybe there's some second request that gets sent when you rate up some content that actually triggers the badge activity. Maybe the `/actions/LogFriendActivityUpvote` request !! I already tried sending it with its options alongside with rate up status but always failed !! Can you help checking it ? @Dr. McKaydo you think anything missing in options ? Also do you think it's similar to my previous thread `View a Broadcast` that steam badge did not detect it ? var optionLogRateActivity = { form: { sessionID: sessionID }, headers: { Host: 'steamcommunity.com', Origin: 'https://steamcommunity.com', Referer: 'https://steamcommunity.com/profiles/'+RatePostSteamID64+'/home/' }, json: true }; var postURL0 = 'https://steamcommunity.com/actions/LogFriendActivityUpvote'; community.httpRequestPost(postURL0, optionLogRateActivity, function (err, res, data) { if (err) { console.log(' [%s] actions/LogFriendActivityUpvote: FAIL'.red, logOnOptions.accountName); } if (!err) { console.log(' [%s] actions/LogFriendActivityUpvote: DONE'.green, logOnOptions.accountName); } }, "steamcommunity" ); Edited December 16, 2021 by SENPAY98K Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.