GithubHelp home page GithubHelp logo

Comments (14)

trim21 avatar trim21 commented on August 15, 2024

有敏感词?

from api.

zhangyoufu avatar zhangyoufu commented on August 15, 2024

有敏感词?

没有涉及到敏感词

尝试了在同一个请求中修改 comment、tags 都能成功修改,但是 private 无法修改,也没有报错

from api.

trim21 avatar trim21 commented on August 15, 2024

可能你的comment有敏感词,在comment为空的情况下也没法修改private属性吗

from api.

zhangyoufu avatar zhangyoufu commented on August 15, 2024

可能你的comment有敏感词,在comment为空的情况下也没法修改private属性吗

comment为空的情况下也无法修改private属性

例如

curl -X PATCH "https://api.bgm.tv/v0/users/-/collections/$SUBJECT_ID" -H "Authorization: Bearer $ACCESS_TOKEN" -H 'Content-Type: application/json' -d '{"private": true}'

from api.

trim21 avatar trim21 commented on August 15, 2024

咦,我看看

from api.

trim21 avatar trim21 commented on August 15, 2024

tag呢,tag里也没有敏感词吗

from api.

zhangyoufu avatar zhangyoufu commented on August 15, 2024

tag呢,tag里也没有敏感词吗

没有任何tag

from api.

trim21 avatar trim21 commented on August 15, 2024

也就是说这个收藏的原本就没有评论也没有tag,但是无法修改private状态是吧

from api.

zhangyoufu avatar zhangyoufu commented on August 15, 2024

也就是说这个收藏的原本就没有评论也没有tag,但是无法修改private状态是吧

是的

from api.

zhangyoufu avatar zhangyoufu commented on August 15, 2024

我感觉你把逻辑写反了

from api.

zhangyoufu avatar zhangyoufu commented on August 15, 2024

https://github.com/bangumi/server/blob/128358bc17e26e9626a80255fdc7b4fde04e0802/internal/ctrl/update_subject_collection.go#L61-L65

from api.

trim21 avatar trim21 commented on August 15, 2024

我也发现了,但这样设置private: true的时候应该能修改成所有人可见的,而不是像你说的无法修改属性。

晚上看看

from api.

zhangyoufu avatar zhangyoufu commented on August 15, 2024

是我的表述不对,我的操作都是 private: true,没有看到变化让我觉得无法修改。尝试用 private: false 后符合预期了

from api.

trim21 avatar trim21 commented on August 15, 2024

😂也不是你表述的问题,是我想当然了,因为经常有帖子问为什么收藏被标记成了私有没法解除,就以为是类似的情况

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.