Permalink
Browse files

find if discussion is archived

  • Loading branch information...
1 parent 0748bad commit f1c51ab3a0292b8196b3648bab3e36b9f3b2170f @pudge pudge committed Jan 19, 2007
Showing with 6 additions and 1 deletion.
  1. +6 −1 plugins/Ajax/htdocs/ajax.pl
@@ -279,8 +279,13 @@ sub fetchComments {
# XXX error?
return unless @$cids && $id;
+ my $discussion = $slashdb->getDiscussion($id);
+ if ($discussion->{type} eq 'archived') {
+ $user->{state}{discussion_archived} = 1;
+ }
+
my($comments) = Slash::selectComments(
- $slashdb->getDiscussion($id),
+ $discussion,
$cid,
{
commentsort => 0,

0 comments on commit f1c51ab

Please sign in to comment.