mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-01 04:17:21 +01:00
status reply fix, removed unused strings
This commit is contained in:
parent
96101a8b4a
commit
84e2938c90
@ -643,10 +643,13 @@ public class Mastodon implements Connection {
|
||||
public Statuses getStatusReplies(long id, long minId, long maxId) throws MastodonException {
|
||||
Statuses statusThreads = getStatuses(ENDPOINT_STATUS + id + "/context", new ArrayList<>(0), minId, maxId);
|
||||
Statuses result = new Statuses();
|
||||
// todo add option to toggle viewing whole thread
|
||||
for (Status status : statusThreads) {
|
||||
// Mastodon doesn't support min/max ID.
|
||||
if (status.getRepliedStatusId() == id && (minId == 0L || status.getId() > minId) && (maxId == 0L || status.getId() < maxId)) {
|
||||
if (status != null && (minId == 0L || status.getId() > minId) && (maxId == 0L || status.getId() < maxId)) {
|
||||
result.add(status);
|
||||
if (result.size() == settings.getListSize()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
@ -170,7 +170,6 @@
|
||||
<string name="error_cant_reply_to_status">Status ist nicht für Antworten freigegeben!</string>
|
||||
<string name="error_corrupt_api_key">Fehler, API Schlüssel ist fehlerhaft!</string>
|
||||
<string name="error_acc_update">Account Informationen konnten nicht aktualisiert werden! Bitte Eingaben überprüfen.</string>
|
||||
<string name="error_translating_status">Post konnte nicht übersetzt werden</string>
|
||||
<string name="settings_color_card">Kartenfarbe</string>
|
||||
<string name="settings_icon_color">Symbolfarbe</string>
|
||||
<string name="settings_key1_hint">Consumer Key</string>
|
||||
|
@ -98,7 +98,6 @@
|
||||
<string name="error_forbidden_api_access">¡La API no soporta esta operación!</string>
|
||||
<string name="error_adding_media">¡Ocurrió un error al agregar los medios!</string>
|
||||
<string name="error_media_init">¡Error al preparar los archivos de medios para su carga!</string>
|
||||
<string name="error_translating_status">No se pudo traducir el estado</string>
|
||||
<string name="error_empty_text">¡El texto está vacío!</string>
|
||||
|
||||
<!-- menu icon strings -->
|
||||
|
@ -126,7 +126,6 @@
|
||||
<string name="error_api_error">API error</string>
|
||||
<string name="error_adding_media">Error occurred while adding media!</string>
|
||||
<string name="error_media_init">Error while preparing media files for upload!</string>
|
||||
<string name="error_translating_status">Could not translate status</string>
|
||||
<string name="error_empty_filter_title">Filter description must not be empty</string>
|
||||
<string name="error_empty_filter_selection">It must be at least one filter enabled</string>
|
||||
<string name="error_empty_text">Empty text!</string>
|
||||
|
Loading…
Reference in New Issue
Block a user