Fix videos not displayed in Peertube profiles
This commit is contained in:
parent
88f8637e23
commit
347f3c1500
|
@ -881,6 +881,7 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
||||||
bundle = new Bundle();
|
bundle = new Bundle();
|
||||||
bundle.putSerializable("type", RetrieveFeedsAsyncTask.Type.USER);
|
bundle.putSerializable("type", RetrieveFeedsAsyncTask.Type.USER);
|
||||||
bundle.putString("targetedid", account.getAcct());
|
bundle.putString("targetedid", account.getAcct());
|
||||||
|
bundle.putString("instanceType", "PEERTUBE");
|
||||||
bundle.putBoolean("showReply",false);
|
bundle.putBoolean("showReply",false);
|
||||||
bundle.putBoolean("ischannel",ischannel);
|
bundle.putBoolean("ischannel",ischannel);
|
||||||
displayStatusFragment.setArguments(bundle);
|
displayStatusFragment.setArguments(bundle);
|
||||||
|
|
|
@ -569,10 +569,8 @@ public class PeertubeAPI {
|
||||||
params.put("count", String.valueOf(limit));
|
params.put("count", String.valueOf(limit));
|
||||||
List<Peertube> peertubes = new ArrayList<>();
|
List<Peertube> peertubes = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
|
|
||||||
HttpsConnection httpsConnection = new HttpsConnection(context);
|
HttpsConnection httpsConnection = new HttpsConnection(context);
|
||||||
String response = httpsConnection.get(getAbsoluteUrl(String.format("/accounts/%s/videos", acct)), 60, params, prefKeyOauthTokenT);
|
String response = httpsConnection.get(getAbsoluteUrl(String.format("/accounts/%s/videos", acct)), 60, params, prefKeyOauthTokenT);
|
||||||
|
|
||||||
JSONArray jsonArray = new JSONObject(response).getJSONArray("data");
|
JSONArray jsonArray = new JSONObject(response).getJSONArray("data");
|
||||||
peertubes = parsePeertube(jsonArray);
|
peertubes = parsePeertube(jsonArray);
|
||||||
|
|
||||||
|
|
|
@ -441,7 +441,6 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
||||||
flag_loading = false;
|
flag_loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//For remote Peertube remote instances
|
//For remote Peertube remote instances
|
||||||
if(instanceType.equals("PEERTUBE")){
|
if(instanceType.equals("PEERTUBE")){
|
||||||
int previousPosition = this.peertubes.size();
|
int previousPosition = this.peertubes.size();
|
||||||
|
|
Loading…
Reference in New Issue