Commit ba53e174 authored by Thomas's avatar Thomas
Browse files

Fix issue #471 - Takes value from reblog if not null

parent 47dfc3f3
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -283,8 +283,13 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
            statusToDeal.bookmarked = statusReturned.bookmarked;

            if (!remote) {
                if (statusReturned.reblog != null) {
                    statusToDeal.reblogs_count = statusReturned.reblog.reblogs_count;
                    statusToDeal.favourites_count = statusReturned.reblog.favourites_count;
                } else {
                    statusToDeal.reblogs_count = statusReturned.reblogs_count;
                    statusToDeal.favourites_count = statusReturned.favourites_count;
                }
            } else {
                switch (typeOfAction) {
                    case REBLOG_ACTION: