fire counter updated event for content status

see mastodon#467
closes sk22#173
This commit is contained in:
sk 2022-12-20 15:17:43 +01:00 committed by LucasGGamerM
parent 3e7bbebe7f
commit 6cbf100828

View File

@ -70,7 +70,8 @@ public class StatusInteractionController{
SetStatusReblogged req=(SetStatusReblogged) new SetStatusReblogged(status.id, reblogged)
.setCallback(new Callback<>(){
@Override
public void onSuccess(Status result){
public void onSuccess(Status reblog){
Status result = reblog.getContentStatus();
runningReblogRequests.remove(status.id);
result.reblogsCount = Math.max(0, status.reblogsCount) + (reblogged ? 1 : -1);
cb.accept(result);