Fossil SCM
Don't even show the "Awaiting Moderator Approval" message, as that would be redundant.
Commit
2233a7b7ac48c5f266d31be93fd2239f08e8d6ab8924eea8bc51e37dffce4175
Parent
bf410211c7324ef…
1 file changed
+6
-11
+6
-11
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -790,21 +790,16 @@ | ||
| 790 | 790 | } |
| 791 | 791 | |
| 792 | 792 | /* Show the complete text of forum messages */ |
| 793 | 793 | if( (tmFlags & (TIMELINE_FORUMTXT))!=0 |
| 794 | 794 | && zType[0]=='f' && g.perm.Hyperlink |
| 795 | - ){ | |
| 796 | - if( content_is_private(rid) | |
| 797 | - && !g.perm.ModForum | |
| 798 | - ){ | |
| 799 | - @ <p><span class="modpending">Awaiting Moderator Approval</span></p> | |
| 800 | - }else{ | |
| 801 | - Manifest *pPost = manifest_get(rid, CFTYPE_FORUM, 0); | |
| 802 | - if( pPost ){ | |
| 803 | - forum_render(0, pPost->zMimetype, pPost->zWiki, "forumTimeline"); | |
| 804 | - manifest_destroy(pPost); | |
| 805 | - } | |
| 795 | + && (!content_is_private(rid) || g.perm.ModForum) | |
| 796 | + ){ | |
| 797 | + Manifest *pPost = manifest_get(rid, CFTYPE_FORUM, 0); | |
| 798 | + if( pPost ){ | |
| 799 | + forum_render(0, pPost->zMimetype, pPost->zWiki, "forumTimeline"); | |
| 800 | + manifest_destroy(pPost); | |
| 806 | 801 | } |
| 807 | 802 | } |
| 808 | 803 | } |
| 809 | 804 | if( suppressCnt ){ |
| 810 | 805 | @ <span class="timelineDisabled">... %d(suppressCnt) similar |
| 811 | 806 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -790,21 +790,16 @@ | |
| 790 | } |
| 791 | |
| 792 | /* Show the complete text of forum messages */ |
| 793 | if( (tmFlags & (TIMELINE_FORUMTXT))!=0 |
| 794 | && zType[0]=='f' && g.perm.Hyperlink |
| 795 | ){ |
| 796 | if( content_is_private(rid) |
| 797 | && !g.perm.ModForum |
| 798 | ){ |
| 799 | @ <p><span class="modpending">Awaiting Moderator Approval</span></p> |
| 800 | }else{ |
| 801 | Manifest *pPost = manifest_get(rid, CFTYPE_FORUM, 0); |
| 802 | if( pPost ){ |
| 803 | forum_render(0, pPost->zMimetype, pPost->zWiki, "forumTimeline"); |
| 804 | manifest_destroy(pPost); |
| 805 | } |
| 806 | } |
| 807 | } |
| 808 | } |
| 809 | if( suppressCnt ){ |
| 810 | @ <span class="timelineDisabled">... %d(suppressCnt) similar |
| 811 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -790,21 +790,16 @@ | |
| 790 | } |
| 791 | |
| 792 | /* Show the complete text of forum messages */ |
| 793 | if( (tmFlags & (TIMELINE_FORUMTXT))!=0 |
| 794 | && zType[0]=='f' && g.perm.Hyperlink |
| 795 | && (!content_is_private(rid) || g.perm.ModForum) |
| 796 | ){ |
| 797 | Manifest *pPost = manifest_get(rid, CFTYPE_FORUM, 0); |
| 798 | if( pPost ){ |
| 799 | forum_render(0, pPost->zMimetype, pPost->zWiki, "forumTimeline"); |
| 800 | manifest_destroy(pPost); |
| 801 | } |
| 802 | } |
| 803 | } |
| 804 | if( suppressCnt ){ |
| 805 | @ <span class="timelineDisabled">... %d(suppressCnt) similar |
| 806 |