]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/personaltagcloudsection.php
Merge branch 'master' of https://git.gnu.io/gnu/gnu-social into social-master
[quix0rs-gnu-social.git] / lib / personaltagcloudsection.php
index 5ea3f188dbf61b2385ad85fde65d15831a381154..957def042c60eee31d29c71cd2a0908df5d42766 100644 (file)
@@ -40,7 +40,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://status.net/
  */
-
 class PersonalTagCloudSection extends TagCloudSection
 {
     var $user = null;
@@ -53,7 +52,8 @@ class PersonalTagCloudSection extends TagCloudSection
 
     function title()
     {
-        return sprintf(_('Tags in %s\'s notices'), $this->user->nickname);
+        // TRANS: Title for personal tag cloud section.
+        return _m('TITLE','Tags');
     }
 
     function getTags()
@@ -61,7 +61,7 @@ class PersonalTagCloudSection extends TagCloudSection
         $weightexpr = common_sql_weight('notice_tag.created', common_config('tag', 'dropoff'));
         // @fixme should we use the cutoff too? Doesn't help with indexing per-user.
 
-        $qry = 'SELECT notice_tag.tag, '.
+        $qry = 'SELECT notice_tag.tag, notice_tag.notice_id, '.
           $weightexpr . ' as weight ' .
           'FROM notice_tag JOIN notice ' .
           'ON notice_tag.notice_id = notice.id ' .
@@ -84,5 +84,4 @@ class PersonalTagCloudSection extends TagCloudSection
                                                  3600);
         return $tag;
     }
-
 }