MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / likePost

Method likePost

wxapp/iqoo.js:314–327  ·  view source on GitHub ↗
(threadId, postId)

Source from the content-addressed store, hash-verified

312 }
313
314 async likePost(threadId, postId) {
315 try {
316 await this.request("v3/posts.update", { id: threadId, postId, data: { attributes: { isLiked: true } } });
317 $.log(`账号[${this.index}] 帖子点赞成功`);
318 } catch (e) {
319 $.log(`账号[${this.index}] 帖子点赞失败:${e.message || e}❌`);
320 }
321 try {
322 await this.request("v3/posts.update", { id: threadId, postId, data: { attributes: { isLiked: false } } });
323 $.log(`账号[${this.index}] 帖子取消点赞成功`);
324 } catch (e) {
325 $.log(`账号[${this.index}] 帖子取消点赞失败:${e.message || e}❌`);
326 }
327 }
328
329 async sharePost(threadId) {
330 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected