aboutsummaryrefslogtreecommitdiffstats
path: root/mod/like.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-10 00:11:37 -0800
committerfriendica <info@friendica.com>2015-02-10 00:11:37 -0800
commit81e7b47b76e6cc72995e910190e4164d28ec5664 (patch)
tree5cc764df8547d529bf52c06ac30981332db47b3f /mod/like.php
parentc69494524590b7ffa07fcab6780c603ded2cb720 (diff)
downloadvolse-hubzilla-81e7b47b76e6cc72995e910190e4164d28ec5664.tar.gz
volse-hubzilla-81e7b47b76e6cc72995e910190e4164d28ec5664.tar.bz2
volse-hubzilla-81e7b47b76e6cc72995e910190e4164d28ec5664.zip
more progress on event confirmations
Diffstat (limited to 'mod/like.php')
-rwxr-xr-xmod/like.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/mod/like.php b/mod/like.php
index b3afd910f..7c328367b 100755
--- a/mod/like.php
+++ b/mod/like.php
@@ -49,6 +49,18 @@ function like_content(&$a) {
case 'unabstain':
$activity = ACTIVITY_ABSTAIN;
break;
+ case 'attendyes':
+ case 'unattendyes':
+ $activity = ACTIVITY_ATTEND;
+ break;
+ case 'attendno':
+ case 'unattendno':
+ $activity = ACTIVITY_ATTENDNO;
+ break;
+ case 'attendmaybe':
+ case 'unattendmaybe':
+ $activity = ACTIVITY_ATTENDMAYBE;
+ break;
default:
return;
break;
@@ -300,6 +312,8 @@ function like_content(&$a) {
}
else {
$post_type = (($item['resource_type'] === 'photo') ? t('photo') : t('status'));
+ if($item['resource_type'] === 'event')
+ $post_type = t('event');
$links = array(array('rel' => 'alternate','type' => 'text/html', 'href' => $item['plink']));
$objtype = (($item['resource_type'] === 'photo') ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE );
@@ -354,8 +368,12 @@ function like_content(&$a) {
$bodyverb = t('%1$s doesn\'t agree with %2$s\'s %3$s');
if($verb === 'abstain')
$bodyverb = t('%1$s abstains from a decision on %2$s\'s %3$s');
-
-
+ if($verb === 'attendyes')
+ $bodyverb = t('%1$s is attending %2$s\'s %3$s');
+ if($verb === 'attendno')
+ $bodyverb = t('%1$s is not attending %2$s\'s %3$s');
+ if($verb === 'attendmaybe')
+ $bodyverb = t('%1$s may attend %2$s\'s %3$s');
if(! isset($bodyverb))
killme();