Jump to content
McKay Development

Recommended Posts

Posted

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"
);
Posted (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 by SENPAY98K

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...