don't include attentions to groups
This commit is contained in:
parent
4898d83fe8
commit
b1852c79c0
|
@ -716,13 +716,15 @@ class QvitterPlugin extends Plugin {
|
||||||
$attentions = $notice->getAttentionProfiles();
|
$attentions = $notice->getAttentionProfiles();
|
||||||
$attentions_array = array();
|
$attentions_array = array();
|
||||||
foreach ($attentions as $attn) {
|
foreach ($attentions as $attn) {
|
||||||
$attentions_array[] = array(
|
if(!$attn->isGroup()) {
|
||||||
'id' => $attn->getID(),
|
$attentions_array[] = array(
|
||||||
'screen_name' => $attn->getNickname(),
|
'id' => $attn->getID(),
|
||||||
'fullname' => $attn->getStreamName(),
|
'screen_name' => $attn->getNickname(),
|
||||||
'profileurl' => $attn->getUrl(),
|
'fullname' => $attn->getStreamName(),
|
||||||
'ostatus_uri' => $attn->getUri(),
|
'profileurl' => $attn->getUrl(),
|
||||||
);
|
'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