diff options
author | friendica <info@friendica.com> | 2012-02-29 19:23:01 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-29 19:23:01 -0800 |
commit | bd2c8c92f1b30d8f811bd4aab0fe3a2c5496ec61 (patch) | |
tree | 951a691592d7a52a85267da7aba9c2d8e15a53bd /include/text.php | |
parent | bbebb4c2a050f22e9aa51cb123359b169bcb3b3c (diff) | |
download | volse-hubzilla-bd2c8c92f1b30d8f811bd4aab0fe3a2c5496ec61.tar.gz volse-hubzilla-bd2c8c92f1b30d8f811bd4aab0fe3a2c5496ec61.tar.bz2 volse-hubzilla-bd2c8c92f1b30d8f811bd4aab0fe3a2c5496ec61.zip |
yet more work on notifications
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 1f5d4a3e1..81e22527a 100755 --- a/include/text.php +++ b/include/text.php @@ -1201,3 +1201,16 @@ function reltoabs($text, $base) return $text; } +function item_post_type($item) { + if(intval($item['event-id'])) + return t('event'); + if(strlen($item['resource-id'])) + return t('photo'); + if(strlen($item['verb']) && $item['verb'] !== ACTIVITY_POST) + return t('activity'); + if($item['id'] != $item['parent']) + return t('comment'); + return t('post'); +} + + |