aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-03-01 11:47:45 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-03-01 11:47:45 +0100
commitb6b7742579d16a4eab97249758a62c5ff33bd07d (patch)
treec96868ebedd31c0fe976452a635b044038abc9cc /include/text.php
parented42fa7d59f0eb979b3b5c86b6969c53d6b6573b (diff)
parentbd2c8c92f1b30d8f811bd4aab0fe3a2c5496ec61 (diff)
downloadvolse-hubzilla-b6b7742579d16a4eab97249758a62c5ff33bd07d.tar.gz
volse-hubzilla-b6b7742579d16a4eab97249758a62c5ff33bd07d.tar.bz2
volse-hubzilla-b6b7742579d16a4eab97249758a62c5ff33bd07d.zip
Merge remote-tracking branch 'friendica/master' into randomerror
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');
+}
+
+