cleanup entity classes and ViewThreadFragment (#1302)
* cleanup entity classes and ViewThreadFragment * fix tests
This commit is contained in:
parent
d863bc50e4
commit
2b2212e951
11 changed files with 52 additions and 132 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue