]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
include limited-scope class on bookmarks in output
authorEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 17:43:54 +0000 (13:43 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 17:44:27 +0000 (13:44 -0400)
plugins/Bookmark/BookmarkPlugin.php

index a24f2077207c293781aa96845fe8b2df1a5428c9..daefa12c3947319a3a040cc18aa2e73ce749dfea 100644 (file)
@@ -294,7 +294,11 @@ class BookmarkPlugin extends MicroAppPlugin
         $nb = Bookmark::getByNotice($nli->notice);
         if (!empty($nb)) {
             $id = (empty($nli->repeat)) ? $nli->notice->id : $nli->repeat->id;
-            $nli->out->elementStart('li', array('class' => 'hentry notice bookmark',
+            $class = 'hentry notice bookmark';
+            if ($nli->notice->scope != 0 && $nli->notice->scope != 1) {
+                $class .= ' limited-scope';
+            }
+            $nli->out->elementStart('li', array('class' => $class,
                                                  'id' => 'notice-' . $id));
             Event::handle('EndOpenNoticeListItemElement', array($nli));
             return false;