summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Discussions.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-01-26 19:02:19 +0100
committerYorhel <git@yorhel.nl>2010-01-26 19:29:00 +0100
commit5f5306216268e2bc97f7dccee24a9a8152553890 (patch)
tree8d273ee2ec55fd89f83a1dc5d47c1926284d9596 /lib/VNDB/Handler/Discussions.pm
parent363d4750f04806775513371b027f9460609eab1a (diff)
Made a start on the notification system
The current setup should be able to handle all kinds of notifications, though only PMs are implemented at this point. More to come.
Diffstat (limited to 'lib/VNDB/Handler/Discussions.pm')
-rw-r--r--lib/VNDB/Handler/Discussions.pm6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm
index fc477de2..c8431c2c 100644
--- a/lib/VNDB/Handler/Discussions.pm
+++ b/lib/VNDB/Handler/Discussions.pm
@@ -29,13 +29,7 @@ sub thread {
my $p = $self->dbPostGet(tid => $tid, results => 25, page => $page, what => 'user');
return 404 if !$p->[0];
- # mark as read when this thread is posted in the board of the currently logged in user
- my $uid = $self->authInfo->{id};
- $self->dbPostRead($t->{id}, $uid, $p->[$#$p]{num})
- if $uid && grep $_->{type} eq 'u' && $_->{iid} == $uid, @{$t->{boards}};
-
$self->htmlHeader(title => $t->{title});
-
div class => 'mainbox';
h1 $t->{title};
h2 mt '_thread_postedin';