summaryrefslogtreecommitdiff
path: root/plugins/UserFlag/UserFlagPlugin.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-19 19:56:24 -0800
committerZach Copley <zach@status.net>2009-11-19 19:56:24 -0800
commit50827d5e81c1b6a5c99e0d0fba2d6ed4c0d22875 (patch)
treefcad8357ee48b7e52b7859c63cc666fa7310390f /plugins/UserFlag/UserFlagPlugin.php
parent3d2a2d4173739a36b45fa32535180b6534b083f9 (diff)
Don't show flag user button your own profile
Diffstat (limited to 'plugins/UserFlag/UserFlagPlugin.php')
-rw-r--r--plugins/UserFlag/UserFlagPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserFlag/UserFlagPlugin.php b/plugins/UserFlag/UserFlagPlugin.php
index c276c4b9f..97b999a2f 100644
--- a/plugins/UserFlag/UserFlagPlugin.php
+++ b/plugins/UserFlag/UserFlagPlugin.php
@@ -88,7 +88,7 @@ class UserFlagPlugin extends Plugin
{
$user = common_current_user();
- if (!empty($user)) {
+ if (!empty($user) && ($user->id != $profile->id)) {
$action->elementStart('li', 'entity_flag');