Fix bug where there were no media in the boosted toot and avatar opened wrong profile.

This commit is contained in:
Ivan Kupalov 2017-07-15 14:57:51 +03:00
parent 6badc2639b
commit ea013f1686

View File

@ -22,7 +22,7 @@ public final class ViewDataUtils {
Status visibleStatus = status.reblog == null ? status : status.reblog; Status visibleStatus = status.reblog == null ? status : status.reblog;
return new StatusViewData.Builder() return new StatusViewData.Builder()
.setId(status.id) .setId(status.id)
.setAttachments(status.attachments) .setAttachments(visibleStatus.attachments)
.setAvatar(visibleStatus.account.avatar) .setAvatar(visibleStatus.account.avatar)
.setContent(visibleStatus.content) .setContent(visibleStatus.content)
.setCreatedAt(visibleStatus.createdAt) .setCreatedAt(visibleStatus.createdAt)
@ -37,7 +37,7 @@ public final class ViewDataUtils {
.setSpoilerText(visibleStatus.spoilerText) .setSpoilerText(visibleStatus.spoilerText)
.setRebloggedByUsername(status.reblog == null ? null : status.account.username) .setRebloggedByUsername(status.reblog == null ? null : status.account.username)
.setUserFullName(visibleStatus.account.getDisplayName()) .setUserFullName(visibleStatus.account.getDisplayName())
.setSenderId(status.account.id) .setSenderId(visibleStatus.account.id)
.setRebloggingEnabled(visibleStatus.rebloggingAllowed()) .setRebloggingEnabled(visibleStatus.rebloggingAllowed())
.createStatusViewData(); .createStatusViewData();
} }