cleanup entity classes and ViewThreadFragment (#1302)

* cleanup entity classes and ViewThreadFragment

* fix tests
This commit is contained in:
Konrad Pozniak 2019-06-02 21:23:18 +02:00 committed by GitHub
commit 2b2212e951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 52 additions and 132 deletions

View file

@ -229,7 +229,8 @@ class TimelineRepositoryImpl(
mentions = mentions,
application = application,
pinned = false,
poll = poll
poll = poll,
card = null
)
}
val status = if (reblog != null) {
@ -254,7 +255,8 @@ class TimelineRepositoryImpl(
mentions = arrayOf(),
application = null,
pinned = false,
poll = null
poll = null,
card = null
)
} else {
Status(
@ -278,7 +280,8 @@ class TimelineRepositoryImpl(
mentions = mentions,
application = application,
pinned = false,
poll = poll
poll = poll,
card = null
)
}
return Either.Right(status)