Fossil SCM

Don't even show the "Awaiting Moderator Approval" message, as that would be redundant.

drh 2020-03-18 00:45 trunk
Commit 2233a7b7ac48c5f266d31be93fd2239f08e8d6ab8924eea8bc51e37dffce4175
1 file changed +6 -11
+6 -11
--- src/timeline.c
+++ src/timeline.c
@@ -790,21 +790,16 @@
790790
}
791791
792792
/* Show the complete text of forum messages */
793793
if( (tmFlags & (TIMELINE_FORUMTXT))!=0
794794
&& 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);
806801
}
807802
}
808803
}
809804
if( suppressCnt ){
810805
@ <span class="timelineDisabled">... %d(suppressCnt) similar
811806
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button