don't include attentions to groups

This commit is contained in:
Hannes Mannerheim 2016-02-17 01:37:15 +01:00
parent 4898d83fe8
commit b1852c79c0

View File

@ -716,6 +716,7 @@ class QvitterPlugin extends Plugin {
$attentions = $notice->getAttentionProfiles();
$attentions_array = array();
foreach ($attentions as $attn) {
if(!$attn->isGroup()) {
$attentions_array[] = array(
'id' => $attn->getID(),
'screen_name' => $attn->getNickname(),
@ -724,6 +725,7 @@ class QvitterPlugin extends Plugin {
'ostatus_uri' => $attn->getUri(),
);
}
}
$twitter_status['attentions'] = $attentions_array;
} catch (Exception $e) {
//