#1 取消赞时显示的赞数可能错误

Open
opened 1 year ago by OmmyZhang · 1 comments
OmmyZhang commented 1 year ago
Owner

取消赞时显示的赞数可能错误,为正确值减一

取消赞时显示的赞数可能错误,为正确值减一
OmmyZhang added the
bug
label 1 year ago
OmmyZhang commented 1 year ago
Poster
Owner

问题来自,根据mastodon的原设计,删除点赞记录是异步操作,取赞时前端的点赞数不变。闭社需要显示点赞数,所以采取了简易的修复方式,用返回的点赞数-1。如果快速点赞再取消,则会出错。

问题来自,根据mastodon的原设计,删除点赞记录是异步操作,取赞时前端的点赞数不变。闭社需要显示点赞数,所以采取了简易的修复方式,用返回的点赞数-1。如果快速点赞再取消,则会出错。
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.