diff --git a/app/src/main/java/app/fedilab/android/client/entities/app/Pinned.java b/app/src/main/java/app/fedilab/android/client/entities/app/Pinned.java index eb6e87ec8..524e7da98 100644 --- a/app/src/main/java/app/fedilab/android/client/entities/app/Pinned.java +++ b/app/src/main/java/app/fedilab/android/client/entities/app/Pinned.java @@ -24,7 +24,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.reflect.TypeToken; import java.io.Serializable; -import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -155,17 +154,7 @@ public class Pinned implements Serializable { } try { Cursor c = db.query(Sqlite.TABLE_PINNED_TIMELINES, null, Sqlite.COL_INSTANCE + " = '" + account.instance + "' AND " + Sqlite.COL_USER_ID + " = '" + account.user_id + "'", null, null, null, Sqlite.COL_UPDATED_AT + " DESC", "1"); - Pinned pinned = cursorToPined(c); - List pinnedTimelines = new ArrayList<>(); - if (pinned != null) { - for (PinnedTimeline pinnedTimeline : pinned.pinnedTimelines) { - if (pinnedTimeline.displayed) { - pinnedTimelines.add(pinnedTimeline); - } - } - pinned.pinnedTimelines = pinnedTimelines; - } - return pinned; + return cursorToPined(c); } catch (Exception e) { return null; }