File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/com/github/zly2006/zhihu/ui Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ class PersonViewModel(
157157 if (isBlocking) {
158158 // unblock
159159 val response = client
160- .delete(" https://www.zhihu.com/api/v4/members/${person.urlToken} /blacks " ) {
160+ .delete(" https://www.zhihu.com/api/v4/members/${person.urlToken} /actions/block " ) {
161161 signFetchRequest(context)
162162 }.raiseForStatus()
163163 Log .d(" PersonViewModel" , " Unblock response: ${response.bodyAsText()} " )
164164 isBlocking = false
165165 } else {
166166 // block
167167 val response = client
168- .post(" https://www.zhihu.com/api/v4/members/${person.urlToken} /blacks " ) {
168+ .post(" https://www.zhihu.com/api/v4/members/${person.urlToken} /actions/block " ) {
169169 signFetchRequest(context)
170170 }.raiseForStatus()
171171 Log .d(" PersonViewModel" , " Block response: ${response.bodyAsText()} " )
You can’t perform that action at this time.
0 commit comments