]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Questions show private lock correctly
authorEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 17:46:44 +0000 (13:46 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 17:46:44 +0000 (13:46 -0400)
plugins/QnA/QnAPlugin.php

index fe429750655a795ab7793045297fe3b8f43af272..0b9b81645cc4abdc854e15e53e511b35452e4c3e 100644 (file)
@@ -295,9 +295,13 @@ class QnAPlugin extends MicroAppPlugin
         {
         case QnA_Question::OBJECT_TYPE:
             $id = (empty($nli->repeat)) ? $nli->notice->id : $nli->repeat->id;
+            $class = 'hentry notice question';
+            if ($nli->notice->scope != 0 && $nli->notice->scope != 1) {
+                $class .= ' limited-scope';
+            }
             $nli->out->elementStart(
                 'li', array(
-                    'class' => 'hentry notice question',
+                    'class' => $class,
                     'id'    => 'notice-' . $id
                 )
             );