From 481ea12d932c155c65d5deaa539a619696d29125 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 26 Aug 2010 13:45:31 +0000 Subject: [PATCH] Changed 'lastReadPostId' calculation --- Builder/IISMainHandler/build.txt | 2 +- Common/dataobjects/Thread.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index da77ca6..06c2b90 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -912 \ No newline at end of file +914 \ No newline at end of file diff --git a/Common/dataobjects/Thread.cs b/Common/dataobjects/Thread.cs index d4230c5..4ece318 100644 --- a/Common/dataobjects/Thread.cs +++ b/Common/dataobjects/Thread.cs @@ -283,7 +283,7 @@ namespace FLocal.Common.dataobjects { throw new CriticalException("more than one row"); } if(stringIds.Count < 1) { - return FORMALREADMIN; + return (this.lastPostId >= FORMALREADMIN) ? 0 : this.lastPostId; } Dictionary data = Config.instance.mainConnection.LoadById(ReadMarkerTableSpec.instance, stringIds[0]); if((data[ReadMarkerTableSpec.FIELD_POSTID] == "") || (data[ReadMarkerTableSpec.FIELD_POSTID] == null)) {