summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-02-19 14:22:25 +0100
committerSarven Capadisli <csarven@status.net>2010-02-19 14:22:25 +0100
commit2c09702b2df4a6ede7fef4b7f1d7c1bcc77a4649 (patch)
tree29652d3e0839404eb864f575bf44ab75ae3a4fdc /classes/Profile.php
parent8d59f7cc9d7f9f12d46530db2d9efe0b7aaac1a5 (diff)
parent52e8aa798a23b2832a748189b42c3bc77d65c9c7 (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 494c697e4..6b396c8c3 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -868,4 +868,16 @@ class Profile extends Memcached_DataObject
return $uri;
}
+ function hasBlocked($other)
+ {
+ $block = Profile_block::get($this->id, $other->id);
+
+ if (empty($block)) {
+ $result = false;
+ } else {
+ $result = true;
+ }
+
+ return $result;
+ }
}