remove boosted status when the original author was blocked or muted (#1335)
This commit is contained in:
parent
cf6a62fbe0
commit
e6d91c1cf3
|
@ -870,7 +870,8 @@ public class TimelineFragment extends SFragment implements
|
||||||
Iterator<Either<Placeholder, Status>> iterator = statuses.iterator();
|
Iterator<Either<Placeholder, Status>> iterator = statuses.iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
Status status = iterator.next().asRightOrNull();
|
Status status = iterator.next().asRightOrNull();
|
||||||
if (status != null && status.getAccount().getId().equals(accountId)) {
|
if (status != null &&
|
||||||
|
(status.getAccount().getId().equals(accountId) || status.getActionableStatus().getAccount().getId().equals(accountId))) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,7 +421,7 @@ public final class ViewThreadFragment extends SFragment implements
|
||||||
Iterator<Status> iterator = statuses.iterator();
|
Iterator<Status> iterator = statuses.iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
Status s = iterator.next();
|
Status s = iterator.next();
|
||||||
if (s.getAccount().getId().equals(accountId)) {
|
if (s.getAccount().getId().equals(accountId) || s.getActionableStatus().getAccount().getId().equals(accountId)) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue