- added to Request: is_htmx_request (bool) - true if the request is made by htmx library (ajax)

- commented out using mount_page_arg_is "subject" and "info" from fun_cat.html and fun_run.html - they will be removed soon
- some improvements in fun_reply.html, fun_showthreads.html and fun_thread.html (scrolling)
This commit is contained in:
2021-05-31 10:58:34 +02:00
parent e6fae4598c
commit 22de3322ae
18 changed files with 112 additions and 34 deletions

View File

@@ -539,11 +539,18 @@ bool Functions::CheckAntispamCounter()
// !!uwaga zwracana wartosc zmieniona (true/false)
// !! IMPROVE ME in emacs.cpp there is a similar function
bool Functions::CheckAbuse()
bool Functions::CheckAbuse(SLog * slog)
{
if( !system->rebus.CheckRebus() )
{
cur->request->status = WINIX_ERR_INCORRECT_REBUS;
if( slog )
{
// put to locale
(*slog) << logerror << T(L"rebus_need_to_solve") << logend;
}
return true;
}
@@ -566,7 +573,6 @@ return false;
// returning true if the 'url' has to be changed
void Functions::ReadItemUrlSubject(Item & item, Item::Type item_type)
{

View File

@@ -176,7 +176,7 @@ public:
void CheckGetPostTimes(time_t difference = 10);
bool CheckAbuse();
bool CheckAbuse(SLog * slog = nullptr);
// !! dac lepsze nazwy
void ReadItemFilterHtml(Item & item);