Retrieve if the message is liked - #826

This commit is contained in:
tom79 2019-02-24 11:08:15 +01:00
parent 7df7cb585e
commit 995bf9d37e
1 changed files with 3 additions and 0 deletions

View File

@ -1882,6 +1882,9 @@ public class GNUAPI {
}catch (Exception e){
status.setFavourited(false);
}
if( resobj.has("friendica_activities") && resobj.getJSONObject("friendica_activities").has("like")){
status.setFavourited(resobj.getJSONObject("friendica_activities").getJSONArray("like").length() !=0);
}
status.setMuted(false);
status.setPinned(false);
try{