aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-02-29 23:26:49 -0500
committerSimon L'nu <simon.lnu@gmail.com>2012-02-29 23:26:49 -0500
commitb7ab2a2fc92bbd7ec3a506e18f950579e10719eb (patch)
tree951a691592d7a52a85267da7aba9c2d8e15a53bd /include/text.php
parent68554741465e92fe2e462b8de4470ddd0eb91302 (diff)
parentbd2c8c92f1b30d8f811bd4aab0fe3a2c5496ec61 (diff)
downloadvolse-hubzilla-b7ab2a2fc92bbd7ec3a506e18f950579e10719eb.tar.gz
volse-hubzilla-b7ab2a2fc92bbd7ec3a506e18f950579e10719eb.tar.bz2
volse-hubzilla-b7ab2a2fc92bbd7ec3a506e18f950579e10719eb.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: yet more work on notifications notification enhancements better handling of multiple notifications for same item, and old notifications * master:
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php13
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');
+}
+
+