1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- defined('GNUSOCIAL') || die();
- class ConversationTreePlugin extends Plugin
- {
- const PLUGIN_VERSION = '2.0.0';
- public function onStartShowConversation(Action $action, Conversation $conv, Profile $scoped = null): bool
- {
- $nl = new ConversationTree($conv->getNotices($action->getScoped()), $action);
- $nl->show();
- return false;
- }
- public function onPluginVersion(array &$versions): bool
- {
- $versions[] = [
- 'name' => 'ConversationTree',
- 'version' => self::PLUGIN_VERSION,
- 'author' => 'Evan Prodromou, Mikael Nordfeldth',
- 'homepage' => 'http://gnu.io/',
- 'rawdescription' =>
-
- _m('Enables conversation tree view.')
- ];
- return true;
- }
- }
|