Skip to content

Commit

Permalink
entry preview page does not support QuickReply
Browse files Browse the repository at this point in the history
Was generating a scripting error when viewing the page.
  • Loading branch information
kareila committed Apr 28, 2017
1 parent aa6bb98 commit fa394ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cgi-bin/LJ/S2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2679,6 +2679,8 @@ sub curr_page_supports_ebox { 0 }
sub has_quickreply
{
my ($page) = @_;
return 0 if $page->{_type} eq 'EntryPreviewPage';

my $view = $page->{view};
# Also needs adding to the list in core2.s2
return $view eq 'entry' || $view eq 'read' || $view eq 'day' || $view eq 'recent' || $view eq 'network';
Expand Down

0 comments on commit fa394ce

Please sign in to comment.