$items = $cb['items'];
$conv_responses = [
- 'like' => ['title' => L10n::t('Likes','title')], 'dislike' => ['title' => L10n::t('Dislikes','title')],
- 'attendyes' => ['title' => L10n::t('Attending','title')], 'attendno' => ['title' => L10n::t('Not attending','title')], 'attendmaybe' => ['title' => L10n::t('Might attend','title')]
+ 'like' => ['title' => L10n::t('Likes','title')],
+ 'dislike' => ['title' => L10n::t('Dislikes','title')],
+ 'attendyes' => ['title' => L10n::t('Attending','title')],
+ 'attendno' => ['title' => L10n::t('Not attending','title')],
+ 'attendmaybe' => ['title' => L10n::t('Might attend','title')],
+ 'announce' => ['title' => L10n::t('Reshares','title')]
];
// array with html for each thread (parent+comments)
case 'attendmaybe':
$verb = ACTIVITY_ATTENDMAYBE;
break;
+ case 'announce':
+ $verb = ACTIVITY2_ANNOUNCE;
+ break;
default:
return;
}
case 'attendmaybe' :
$phrase = L10n::t('%s attends maybe.', $likers);
break;
+ case 'announce' :
+ $phrase = L10n::t('%s reshared this.', $likers);
+ break;
}
}
$phrase = L10n::t('<span %1$s>%2$d people</span> attend maybe', $spanatts, $cnt);
$explikers = L10n::t('%s attend maybe.', $likers);
break;
+ case 'announce':
+ $phrase = L10n::t('<span %1$s>%2$d people</span> reshared this', $spanatts, $cnt);
+ $explikers = L10n::t('%s reshared this.', $likers);
+ break;
}
$expanded .= "\t" . '<p class="wall-item-' . $type . '-expanded" id="' . $type . 'list-' . $id . '" style="display: none;" >' . $explikers . EOL . '</p>';
$location = ((strlen($locate['html'])) ? $locate['html'] : render_location_dummy($locate));
// process action responses - e.g. like/dislike/attend/agree/whatever
- $response_verbs = ['like', 'dislike'];
+ $response_verbs = ['like', 'dislike', 'announce'];
$isevent = false;
$attend = [];