summaryrefslogtreecommitdiff
path: root/plugins/UserFlag/UserFlagPlugin.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-01 21:12:22 +0000
committerSarven Capadisli <csarven@status.net>2010-01-01 21:12:22 +0000
commite6ea91a84bd8afd1dee668f02f0b5f0fba66e21d (patch)
tree4a32b7f676ff15dfe17748d9016781806d12e60e /plugins/UserFlag/UserFlagPlugin.php
parentf6ab4ea1362492a491f9474c5d0e803857bf9583 (diff)
parentc11b339dc385ef3fa2aef7d53cdfae4a03cdfa96 (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/UserFlag/UserFlagPlugin.php')
-rw-r--r--plugins/UserFlag/UserFlagPlugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php
index 0fca5f9cf..602a5bfa8 100644
--- a/plugins/UserFlag/UserFlagPlugin.php
+++ b/plugins/UserFlag/UserFlagPlugin.php
@@ -251,7 +251,9 @@ class UserFlagPlugin extends Plugin
function onEndBlockProfile($user, $profile)
{
- if ($this->flagOnBlock) {
+ if ($this->flagOnBlock && !User_flag_profile::exists($profile->id,
+ $user->id)) {
+
User_flag_profile::create($user->id, $profile->id);
}
return true;