diff options
author | Sarven Capadisli <csarven@status.net> | 2010-02-19 14:22:25 +0100 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-02-19 14:22:25 +0100 |
commit | 2c09702b2df4a6ede7fef4b7f1d7c1bcc77a4649 (patch) | |
tree | 29652d3e0839404eb864f575bf44ab75ae3a4fdc /classes/Profile.php | |
parent | 8d59f7cc9d7f9f12d46530db2d9efe0b7aaac1a5 (diff) | |
parent | 52e8aa798a23b2832a748189b42c3bc77d65c9c7 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'classes/Profile.php')
-rw-r--r-- | classes/Profile.php | 12 |
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; + } } |