diff options
author | friendica <info@friendica.com> | 2015-01-11 14:41:33 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-11 14:41:33 -0800 |
commit | 0259051a87233f32efaaa7f0b4dafc71c2f3c13d (patch) | |
tree | 3d222e3a66d14d5e4477304789e292939e3b808e /mod/like.php | |
parent | b018b39e6473b74599a9cefe1ed8bae923424ff4 (diff) | |
download | volse-hubzilla-0259051a87233f32efaaa7f0b4dafc71c2f3c13d.tar.gz volse-hubzilla-0259051a87233f32efaaa7f0b4dafc71c2f3c13d.tar.bz2 volse-hubzilla-0259051a87233f32efaaa7f0b4dafc71c2f3c13d.zip |
basic backend work for creating consensus items
Diffstat (limited to 'mod/like.php')
-rwxr-xr-x | mod/like.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mod/like.php b/mod/like.php index 04a2b43cd..b3afd910f 100755 --- a/mod/like.php +++ b/mod/like.php @@ -37,6 +37,18 @@ function like_content(&$a) { case 'undislike': $activity = ACTIVITY_DISLIKE; break; + case 'agree': + case 'unagree': + $activity = ACTIVITY_AGREE; + break; + case 'disagree': + case 'undisagree': + $activity = ACTIVITY_DISAGREE; + break; + case 'abstain': + case 'unabstain': + $activity = ACTIVITY_ABSTAIN; + break; default: return; break; @@ -336,6 +348,14 @@ function like_content(&$a) { $bodyverb = t('%1$s likes %2$s\'s %3$s'); if($verb === 'dislike') $bodyverb = t('%1$s doesn\'t like %2$s\'s %3$s'); + if($verb === 'agree') + $bodyverb = t('%1$s agrees with %2$s\'s %3$s'); + if($verb === 'disagree') + $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(! isset($bodyverb)) killme(); |