Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Only show the "Moderation Requests" submenu button if there exist one or more posts in need of moderation. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | forum-v2 |
| Files: | files | file ages | folders |
| SHA3-256: |
397c32b6bbf461f893bf25512355a1f1 |
| User & Date: | drh 2018-07-31 17:13:59.446 |
Context
|
2018-07-31
| ||
| 17:38 | Make the title of a deleted forum thread "(Deleted)". ... (check-in: 46697ca195 user: drh tags: forum-v2) | |
| 17:13 | Only show the "Moderation Requests" submenu button if there exist one or more posts in need of moderation. ... (check-in: 397c32b6bb user: drh tags: forum-v2) | |
| 17:05 | Try to make moderation a little easier, as recent experience suggests that will be a big deal with the forum. ... (check-in: a9e5a1eefd user: drh tags: forum-v2) | |
Changes
Changes to src/forum.c.
| ︙ | ︙ | |||
911 912 913 914 915 916 917 |
login_needed(g.anon.RdForum);
return;
}
style_header("Forum");
if( g.perm.WrForum ){
style_submenu_element("New Message","%R/forumnew");
}
| | | 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 |
login_needed(g.anon.RdForum);
return;
}
style_header("Forum");
if( g.perm.WrForum ){
style_submenu_element("New Message","%R/forumnew");
}
if( g.perm.ModForum && moderation_needed() ){
style_submenu_element("Moderation Requests", "%R/modreq");
}
if( search_screen(SRCH_FORUM, 0) ){
style_submenu_element("Recent Threads","%R/forum");
style_footer();
return;
}
|
| ︙ | ︙ |
Changes to src/moderate.c.
| ︙ | ︙ | |||
68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
int pending = moderation_pending(rid);
if( pending ){
@ <span class="modpending">(Awaiting Moderator Approval)</span>
}
return pending;
}
/*
** Check to see if the object identified by RID is used for anything.
*/
static int object_used(int rid){
static const char *const aTabField[] = {
"modreq", "attachRid",
"mlink", "mid",
| > > > > > > > > > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
int pending = moderation_pending(rid);
if( pending ){
@ <span class="modpending">(Awaiting Moderator Approval)</span>
}
return pending;
}
/*
** Return TRUE if there any pending moderation requests.
*/
int moderation_needed(void){
if( !moderation_table_exists() ) return 0;
return db_exists("SELECT 1 FROM modreq");
}
/*
** Check to see if the object identified by RID is used for anything.
*/
static int object_used(int rid){
static const char *const aTabField[] = {
"modreq", "attachRid",
"mlink", "mid",
|
| ︙ | ︙ |