Fix videos not displayed in Peertube profiles

This commit is contained in:
stom79 2019-01-24 18:03:00 +01:00
parent 88f8637e23
commit 347f3c1500
3 changed files with 1 additions and 3 deletions

View File

@ -881,6 +881,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
bundle = new Bundle();
bundle.putSerializable("type", RetrieveFeedsAsyncTask.Type.USER);
bundle.putString("targetedid", account.getAcct());
bundle.putString("instanceType", "PEERTUBE");
bundle.putBoolean("showReply",false);
bundle.putBoolean("ischannel",ischannel);
displayStatusFragment.setArguments(bundle);

View File

@ -569,10 +569,8 @@ public class PeertubeAPI {
params.put("count", String.valueOf(limit));
List<Peertube> peertubes = new ArrayList<>();
try {
HttpsConnection httpsConnection = new HttpsConnection(context);
String response = httpsConnection.get(getAbsoluteUrl(String.format("/accounts/%s/videos", acct)), 60, params, prefKeyOauthTokenT);
JSONArray jsonArray = new JSONObject(response).getJSONArray("data");
peertubes = parsePeertube(jsonArray);

View File

@ -441,7 +441,6 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
flag_loading = false;
return;
}
//For remote Peertube remote instances
if(instanceType.equals("PEERTUBE")){
int previousPosition = this.peertubes.size();