in gnu-social reshare objects are activities, not posts or comments
This commit is contained in:
parent
b0dd824dbc
commit
4d81c498e2
@ -691,7 +691,7 @@ function get_atom_elements($feed, $item, &$author) {
|
|||||||
|
|
||||||
|
|
||||||
if(array_key_exists('verb',$res) && $res['verb'] === ACTIVITY_SHARE
|
if(array_key_exists('verb',$res) && $res['verb'] === ACTIVITY_SHARE
|
||||||
&& array_key_exists('obj_type',$res) && in_array($res['obj_type'], [ ACTIVITY_OBJ_NOTE, ACTIVITY_OBJ_COMMENT ] )) {
|
&& array_key_exists('obj_type',$res) && in_array($res['obj_type'], [ ACTIVITY_OBJ_NOTE, ACTIVITY_OBJ_COMMENT, ACTIVITY_OBJ_ACTIVITY ] )) {
|
||||||
feed_get_reshare($res,$item);
|
feed_get_reshare($res,$item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user