Retrieve if the message is liked - #826
This commit is contained in:
parent
7df7cb585e
commit
995bf9d37e
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue