123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class ActivityVerbPlugin extends Plugin
- {
- const PLUGIN_VERSION = '2.0.0';
- public function onRouterInitialized(URLMapper $m)
- {
- $m->connect('notice/:id/:verb',
- array('action' => 'activityverb'),
- array('id' => '[0-9]+',
- 'verb' => '[a-z]+'));
- $m->connect('activity/:id/:verb',
- array('action' => 'activityverb'),
- array('id' => '[0-9]+',
- 'verb' => '[a-z]+'));
- }
- public function onPluginVersion(array &$versions)
- {
- $versions[] = array('name' => 'Activity Verb',
- 'version' => self::PLUGIN_VERSION,
- 'author' => 'Mikael Nordfeldth',
- 'homepage' => 'https://www.gnu.org/software/social/',
- 'rawdescription' =>
-
- _m('Adds more standardized verb handling for activities.'));
- return true;
- }
- }
|