forked from GNUsocial/gnu-social
don't get self-tags
darcs-hash:20081124015927-84dde-525625c0341e62d3939879430743d0a976d0d8d2.gz
This commit is contained in:
parent
82696b150e
commit
bb5437bd2d
@ -150,7 +150,10 @@ class Profile extends Memcached_DataObject
|
||||
|
||||
function getAllTags() {
|
||||
$profile_tag = new Notice_tag();
|
||||
$profile_tag->query('SELECT DISTINCT(tag) FROM profile_tag WHERE tagger = ' . $this->id);
|
||||
$profile_tag->query('SELECT DISTINCT(tag) ' .
|
||||
'FROM profile_tag ' .
|
||||
'WHERE tagger = ' . $this->id . ' ' .
|
||||
'AND tagger != tagged');
|
||||
$tags = array();
|
||||
while ($profile_tag->fetch()) {
|
||||
$tags[] = $profile_tag->tag;
|
||||
|
Loading…
Reference in New Issue
Block a user