Changed 'lastReadPostId' calculation

main
Inga 🏳‍🌈 15 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");
}
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]);
if((data[ReadMarkerTableSpec.FIELD_POSTID] == "") || (data[ReadMarkerTableSpec.FIELD_POSTID] == null)) {

Loading…
Cancel
Save