From: Evan Prodromou Date: Mon, 24 Nov 2008 01:59:27 +0000 (-0500) Subject: don't get self-tags X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bb5437bd2d4ed4208030fd4f05b7548a69574444;p=quix0rs-gnu-social.git don't get self-tags darcs-hash:20081124015927-84dde-525625c0341e62d3939879430743d0a976d0d8d2.gz --- diff --git a/classes/Profile.php b/classes/Profile.php index 2d6b48217c..5f762df80a 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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;