Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

find if discussion is archived

  • Loading branch information...
commit f1c51ab3a0292b8196b3648bab3e36b9f3b2170f 1 parent 0748bad
@pudge pudge authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 plugins/Ajax/htdocs/ajax.pl
View
7 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,
Please sign in to comment.
Something went wrong with that request. Please try again.