]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photos.php
Links to photo pages in gallery
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photos.php
index 3092389330aff3b507b6319f856bc2e5088c7630..37ec8ce32f7961a5e11b2cc2075e69dfbe41d025 100644 (file)
@@ -93,7 +93,8 @@ class PhotosAction extends Action
         $this->elementStart('ul', array('class' => 'photothumbs'));
         foreach ($photos as $photo) {
             $this->elementStart('li');
-            $this->elementStart('a', array('href' => $photo->uri));
+                       $photolink = '/' . $this->user->nickname . '/photo/' . $photo->notice_id;
+            $this->elementStart('a', array('href' => $photolink));
             $this->element('img', array('src' => $photo->thumb_uri));
             $this->elementEnd('a');
             $this->elementEnd('li');