Changed 'lastReadPostId' calculation

main
Inga 🏳‍🌈 14 years ago
parent 049a44b21b
commit 481ea12d93
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Common/dataobjects/Thread.cs

@ -283,7 +283,7 @@ namespace FLocal.Common.dataobjects {
throw new CriticalException("more than one row"); throw new CriticalException("more than one row");
} }
if(stringIds.Count < 1) { if(stringIds.Count < 1) {
return FORMALREADMIN; return (this.lastPostId >= FORMALREADMIN) ? 0 : this.lastPostId;
} }
Dictionary<string, string> data = Config.instance.mainConnection.LoadById(ReadMarkerTableSpec.instance, stringIds[0]); Dictionary<string, string> data = Config.instance.mainConnection.LoadById(ReadMarkerTableSpec.instance, stringIds[0]);
if((data[ReadMarkerTableSpec.FIELD_POSTID] == "") || (data[ReadMarkerTableSpec.FIELD_POSTID] == null)) { if((data[ReadMarkerTableSpec.FIELD_POSTID] == "") || (data[ReadMarkerTableSpec.FIELD_POSTID] == null)) {

Loading…
Cancel
Save