app/controllers/discourse-media-wiki-import/import_controller.rb
def update_topic_content(topic:, wiki_page_title:, wiki_page_text:)
      topic.update_columns(title: wiki_page_title)
        
      topic.first_post.revise(
          current_user,
          {
            wiki: true,
            title: wiki_page_title,
            raw: wiki_page_text,
            cooked: wiki_page_text
          },
          skip_jobs: true,
          skip_validations: true
        )
    end
##
# Updates the topic's existing title and content with the new content.
#
Updates the topic's existing title and content with the new content.
Updates the topic ' s existing title and content with the new content .
def update_topic_content(topic:, wiki_page_title:, wiki_page_text:)
      topic.update_columns(title: wiki_page_title)
      topic.first_post.revise(
          current_user,
          {
            wiki: true,
            title: wiki_page_title,
            raw: wiki_page_text,
            cooked: wiki_page_text
          },
          skip_jobs: true,
          skip_validations: true
        )
    end
def update_topic_content ( topic : , wiki_page_title : , wiki_page_text : ) topic . update_columns ( title : wiki_page_title ) topic . first_post . revise ( current_user , { wiki : true , title : wiki_page_title , raw : wiki_page_text , cooked : wiki_page_text } , skip_jobs : true , skip_validations : true ) end
Updates the topic's existing title and content with the new content.
Updates the topic ' s existing title and content with the new content .
topic
wiki_page_title
wiki_page_text