don't include attentions to groups
This commit is contained in:
parent
4898d83fe8
commit
b1852c79c0
|
@ -716,6 +716,7 @@ class QvitterPlugin extends Plugin {
|
||||||
$attentions = $notice->getAttentionProfiles();
|
$attentions = $notice->getAttentionProfiles();
|
||||||
$attentions_array = array();
|
$attentions_array = array();
|
||||||
foreach ($attentions as $attn) {
|
foreach ($attentions as $attn) {
|
||||||
|
if(!$attn->isGroup()) {
|
||||||
$attentions_array[] = array(
|
$attentions_array[] = array(
|
||||||
'id' => $attn->getID(),
|
'id' => $attn->getID(),
|
||||||
'screen_name' => $attn->getNickname(),
|
'screen_name' => $attn->getNickname(),
|
||||||
|
@ -724,6 +725,7 @@ class QvitterPlugin extends Plugin {
|
||||||
'ostatus_uri' => $attn->getUri(),
|
'ostatus_uri' => $attn->getUri(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$twitter_status['attentions'] = $attentions_array;
|
$twitter_status['attentions'] = $attentions_array;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue
Block a user