diff options
author | stom79 <tschneider.ac@gmail.com> | 2018-09-03 19:32:23 +0200 |
---|---|---|
committer | stom79 <tschneider.ac@gmail.com> | 2018-09-03 19:32:23 +0200 |
commit | 05c0f258bc0e583d32144bfeacd794950edfe6b5 (patch) | |
tree | 321fe0aaadabb423a991866f6caf18315bb355fa /app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveFeedsAsyncTask.java | |
parent | 7ae0f21f7cea65ca845770fdf8fd46ce1be97baa (diff) |
Makes mention clickable in remote instances
Diffstat (limited to 'app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveFeedsAsyncTask.java')
-rw-r--r-- | app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveFeedsAsyncTask.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveFeedsAsyncTask.java b/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveFeedsAsyncTask.java index 7cacba924..c959df5ee 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveFeedsAsyncTask.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveFeedsAsyncTask.java @@ -23,6 +23,7 @@ import java.util.List; import fr.gouv.etalab.mastodon.client.API; import fr.gouv.etalab.mastodon.client.APIResponse; +import fr.gouv.etalab.mastodon.client.Entities.Status; import fr.gouv.etalab.mastodon.helper.FilterToots; import fr.gouv.etalab.mastodon.interfaces.OnRetrieveFeedsInterface; import fr.gouv.etalab.mastodon.sqlite.Sqlite; @@ -123,6 +124,12 @@ public class RetrieveFeedsAsyncTask extends AsyncTask<Void, Void, Void> { break; case REMOTE_INSTANCE: apiResponse = api.getPublicTimeline(this.instanceName,false, max_id); + List<fr.gouv.etalab.mastodon.client.Entities.Status> statusesTemp = apiResponse.getStatuses(); + if( statusesTemp != null){ + for(fr.gouv.etalab.mastodon.client.Entities.Status status: statusesTemp){ + status.setType(action); + } + } break; case FAVOURITES: apiResponse = api.getFavourites(max_id); |