mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix ClassCastException. (#235)
This commit is contained in:
parent
0cea0a50f5
commit
11845f26fc
1 changed files with 4 additions and 1 deletions
|
@ -142,7 +142,10 @@ public class ResponseHelper {
|
||||||
|
|
||||||
final List<StreamItem> relatedStreams = new ObjectArrayList<>();
|
final List<StreamItem> relatedStreams = new ObjectArrayList<>();
|
||||||
|
|
||||||
info.getRelatedItems().forEach(o -> relatedStreams.add(collectRelatedStream(o)));
|
info.getRelatedItems().forEach(o -> {
|
||||||
|
if (o instanceof StreamInfoItem)
|
||||||
|
relatedStreams.add(collectRelatedStream(o));
|
||||||
|
});
|
||||||
|
|
||||||
long time = info.getUploadDate() != null ? info.getUploadDate().offsetDateTime().toInstant().toEpochMilli()
|
long time = info.getUploadDate() != null ? info.getUploadDate().offsetDateTime().toInstant().toEpochMilli()
|
||||||
: System.currentTimeMillis();
|
: System.currentTimeMillis();
|
||||||
|
|
Loading…
Reference in a new issue