Skip to content
Permalink
Browse files Browse the repository at this point in the history
Bump get query limit from 29 to 50. Disallow access via IP.
  • Loading branch information
kajmagnus committed Oct 11, 2021
1 parent 4574242 commit 4067e19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion appsv/server/debiki/Globals.scala
Expand Up @@ -801,11 +801,12 @@ class Globals( // RENAME to TyApp? or AppContext? TyAppContext? variable name =
die("DwE20SE4")
}
case None =>
/* Not really needed. Better to use a real domain name.
if (Site.Ipv4AnyPortRegex.matches(hostname)) {
// Make it possible to access the server before any domain has been pointed
// to it, just after installation, by lazy-creating an empty default site.
return defaultSiteIdAndHostname
}
} */
throwSiteNotFound(
hostname, debugCode = "LKPCANHOST")
}
Expand Down
4 changes: 2 additions & 2 deletions appsv/server/talkyard/server/api/GetController.scala
Expand Up @@ -64,8 +64,8 @@ class GetController @Inject()(cc: ControllerComponents, edContext: EdContext)

val authzCtx = dao.getForumAuthzContext(requester)

throwUnimplementedIf(pageRefs.size >= 30,
"TyE603MRT4", "Currently at most 30 at a time")
throwUnimplementedIf(pageRefs.size > 50,
"TyE603MRT4", "Currently at most 50 at a time")

def notFoundMsg(embUrl: St, pageId: PageId = NoPageId): St = {
s"No page with that embedding url or discussion id: $embUrl"
Expand Down

0 comments on commit 4067e19

Please sign in to comment.