From 96d642d821715b1a5e823416f18a4acea78e27ef Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Sat, 25 Sep 2010 18:49:47 +0000 Subject: [PATCH] MarkThreadAsRead works when last post moved --- Builder/IISMainHandler/build.txt | 2 +- IISMainHandler/handlers/request/MarkThreadAsReadHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 44c590d..377ce3c 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -1658 \ No newline at end of file +1660 \ No newline at end of file diff --git a/IISMainHandler/handlers/request/MarkThreadAsReadHandler.cs b/IISMainHandler/handlers/request/MarkThreadAsReadHandler.cs index 53b5951..1cafe33 100644 --- a/IISMainHandler/handlers/request/MarkThreadAsReadHandler.cs +++ b/IISMainHandler/handlers/request/MarkThreadAsReadHandler.cs @@ -23,7 +23,7 @@ namespace FLocal.IISHandler.handlers.request { if(!requestParts[3].StartsWith("p")) throw new WrongUrlException(); //throw new CriticalException("wrong url"); Post post = Post.LoadById(int.Parse(requestParts[3].PHPSubstring(1))); - if(post.thread.id != thread.id) throw new CriticalException("id mismatch"); + //if(post.thread.id != thread.id) throw new CriticalException("id mismatch"); thread.forceMarkAsRead(account, post); }