Post.bodyShort now returns UBBCode instead of HTML for new posts

main
Inga 🏳‍🌈 15 years ago
parent 7e7af41fd6
commit 33dadc3752
  1. 2
      Builder/IISMainHandler/build.txt
  2. 3
      Common/dataobjects/Post.cs

@ -126,6 +126,9 @@ namespace FLocal.Common.dataobjects {
}
public string bodyShort {
get {
if(this.revision.HasValue) {
return this.latestRevision.body.PHPSubstring(0, 300);
}
return this.body.Replace("<br />", Util.EOL).Replace("<br/>", Util.EOL).PHPSubstring(0, 1000);
}
}

Loading…
Cancel
Save