@@ -200,10 +200,10 @@ public static DotNetNuke.Modules.ActiveForums.Entities.TopicInfo Approve(int mod
200
200
201
201
if ( ti . Forum . FeatureSettings . ModApproveTemplateId > 0 & ti . Author . AuthorId > 0 )
202
202
{
203
- DotNetNuke . Modules . ActiveForums . Controllers . EmailController . SendEmail ( ti . Forum . FeatureSettings . ModApproveTemplateId , ti . PortalId , ti . ModuleId , ti . Forum . TabId , ti . ForumId , topicId , 0 , ti . Author ) ;
203
+ DotNetNuke . Modules . ActiveForums . Controllers . EmailController . SendEmail ( ti . Forum . FeatureSettings . ModApproveTemplateId , ti . PortalId , ti . ModuleId , ti . Forum . GetTabId ( ) , ti . ForumId , topicId , 0 , ti . Author ) ;
204
204
}
205
205
206
- DotNetNuke . Modules . ActiveForums . Controllers . TopicController . QueueApprovedTopicAfterAction ( portalId : ti . PortalId , tabId : ti . Forum . TabId , moduleId : ti . Forum . ModuleId , forumGroupId : ti . Forum . ForumGroupId , forumId : ti . ForumId , topicId : topicId , replyId : - 1 , contentId : ti . ContentId , userId : userId , authorId : ti . Content . AuthorId ) ;
206
+ DotNetNuke . Modules . ActiveForums . Controllers . TopicController . QueueApprovedTopicAfterAction ( portalId : ti . PortalId , tabId : ti . Forum . GetTabId ( ) , moduleId : ti . Forum . ModuleId , forumGroupId : ti . Forum . ForumGroupId , forumId : ti . ForumId , topicId : topicId , replyId : - 1 , contentId : ti . ContentId , userId : userId , authorId : ti . Content . AuthorId ) ;
207
207
return ti ;
208
208
}
209
209
@@ -240,7 +240,7 @@ public static void Move(int moduleId, int userId, int topicId, int newForumId)
240
240
241
241
if ( oldForum . FeatureSettings . ModMoveTemplateId > 0 & ti ? . Author ? . AuthorId > 0 )
242
242
{
243
- DotNetNuke . Modules . ActiveForums . Controllers . EmailController . SendEmail ( oldForum . FeatureSettings . ModMoveTemplateId , ti . PortalId , ti . ModuleId , ti . Forum . TabId , forumId : ti . Forum . ForumID , topicId : ti . TopicId , replyId : - 1 , author : ti . Author ) ;
243
+ DotNetNuke . Modules . ActiveForums . Controllers . EmailController . SendEmail ( oldForum . FeatureSettings . ModMoveTemplateId , ti . PortalId , ti . ModuleId , ti . Forum . GetTabId ( ) , forumId : ti . Forum . ForumID , topicId : ti . TopicId , replyId : - 1 , author : ti . Author ) ;
244
244
}
245
245
246
246
new DotNetNuke . Modules . ActiveForums . Controllers . ProcessQueueController ( ) . Add ( ProcessType . UpdateForumLastUpdated , ti . PortalId , tabId : - 1 , moduleId : ti . ModuleId , forumGroupId : oldForum . ForumGroupId , forumId : oldForum . ForumID , topicId : topicId , replyId : - 1 , contentId : ti . ContentId , authorId : ti . Content . AuthorId , userId : userId , requestUrl : null ) ;
@@ -283,8 +283,8 @@ public static int Save(DotNetNuke.Modules.ActiveForums.Entities.TopicInfo ti)
283
283
// if existing topic, update associated journal item
284
284
if ( ti . TopicId > 0 )
285
285
{
286
- string sUrl = new ControlUtils ( ) . BuildUrl ( ti . PortalId , ti . Forum . TabId , ti . ModuleId , ti . Forum . ForumGroup . PrefixURL , ti . Forum . PrefixURL , ti . Forum . ForumGroupId , ti . ForumId , ti . TopicId , ti . TopicUrl , - 1 , - 1 , string . Empty , 1 , - 1 , ti . Forum . SocialGroupId ) ;
287
- new Social ( ) . UpdateJournalItemForPost ( ti . PortalId , ti . ModuleId , ti . Forum . TabId , ti . ForumId , ti . TopicId , 0 , ti . Author . AuthorId , sUrl , ti . Content . Subject , string . Empty , ti . Content . Body ) ;
286
+ string sUrl = new ControlUtils ( ) . BuildUrl ( ti . PortalId , ti . Forum . GetTabId ( ) , ti . ModuleId , ti . Forum . ForumGroup . PrefixURL , ti . Forum . PrefixURL , ti . Forum . ForumGroupId , ti . ForumId , ti . TopicId , ti . TopicUrl , - 1 , - 1 , string . Empty , 1 , - 1 , ti . Forum . SocialGroupId ) ;
287
+ new Social ( ) . UpdateJournalItemForPost ( ti . PortalId , ti . ModuleId , ti . Forum . GetTabId ( ) , ti . ForumId , ti . TopicId , 0 , ti . Author . AuthorId , sUrl , ti . Content . Subject , string . Empty , ti . Content . Body ) ;
288
288
}
289
289
290
290
// TODO: convert to use DAL2?
0 commit comments