diff options
author | Mario <mario@mariovavti.com> | 2022-09-27 08:59:08 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-09-27 08:59:08 +0000 |
commit | 2f21dc50b4887f7397f0124245f4bdbf22241a81 (patch) | |
tree | 4bb65bc25fc319174193f622e1279b35f103d05c /include/text.php | |
parent | 03475bfb15637d61698e1b3350f7b98654637fc6 (diff) | |
download | volse-hubzilla-2f21dc50b4887f7397f0124245f4bdbf22241a81.tar.gz volse-hubzilla-2f21dc50b4887f7397f0124245f4bdbf22241a81.tar.bz2 volse-hubzilla-2f21dc50b4887f7397f0124245f4bdbf22241a81.zip |
fix mod poke
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/include/text.php b/include/text.php index 3b21b04b6..37d185ce6 100644 --- a/include/text.php +++ b/include/text.php @@ -1254,26 +1254,24 @@ function sslify($s) { * * \e value is array containing past tense verb, translation of present, translation of past */ function get_poke_verbs() { - if (get_config('system', 'poke_basic')) { - $arr = array( - 'poke' => array('poked', t('poke'), t('poked')), - ); - } else { - $arr = array( - 'poke' => array( 'poked', t('poke'), t('poked')), - 'ping' => array( 'pinged', t('ping'), t('pinged')), - 'prod' => array( 'prodded', t('prod'), t('prodded')), - 'slap' => array( 'slapped', t('slap'), t('slapped')), - 'finger' => array( 'fingered', t('finger'), t('fingered')), - 'rebuff' => array( 'rebuffed', t('rebuff'), t('rebuffed')), - ); - /** - * @hooks poke_verbs - * * \e array associative array with another array as value - */ - call_hooks('poke_verbs', $arr); - } + $arr = [ + 'poke' => ['poked', t('poke'), t('poked')], + 'ping' => ['pinged', t('ping'), t('pinged')], + + // Those might be better suited for a nsfw poke addon + + // 'prod' => ['prodded', t('prod'), t('prodded')], + // 'slap' => ['slapped', t('slap'), t('slapped')], + // 'finger' => ['fingered', t('finger'), t('fingered')], + // 'rebuff' => ['rebuffed', t('rebuff'), t('rebuffed')] + ]; + + /** + * @hooks poke_verbs + * * \e array associative array with another array as value + */ + call_hooks('poke_verbs', $arr); return $arr; } |