fix(StatusDisplayItem): don't display self-referential quotes
This commit is contained in:
parent
cdd9b0553f
commit
5fd2e322f6
|
@ -424,10 +424,14 @@ public abstract class StatusDisplayItem{
|
|||
@Override
|
||||
public void onSuccess(SearchResults results){
|
||||
if (!results.statuses.isEmpty()){
|
||||
status.quote=results.statuses.get(0);
|
||||
Status quote=results.statuses.get(0);
|
||||
// don't show self-referential quotes
|
||||
if(!Objects.equals(status.id, results.statuses.get(0).id)){
|
||||
status.quote=quote;
|
||||
fragment.updateStatusWithQuote(status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(ErrorResponse error){
|
||||
|
|
Loading…
Reference in New Issue