. /** * The ConversationTree plugin displays conversation replies in a hierarchical * manner like StatusNet pre-v1.0 used to. * * @category UI * @package ConversationTreePlugin * @author Mikael Nordfeldth * @copyright 2019 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ 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' => GNUSOCIAL_ENGINE_URL, 'rawdescription' => // TRANS: Module description. _m('Enables conversation tree view.') ]; return true; } }