Welcome to mirror list, hosted at ThFree Co, Russian Federation.

wiki_page_builder.rb « hook_data « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 78ae896a3d8663c625b96593940f7050f3b364c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Gitlab
  module HookData
    class WikiPageBuilder < BaseBuilder
      alias_method :wiki_page, :object

      def build
        wiki_page
          .attributes
          .merge(
            'content' => absolute_image_urls(wiki_page.content)
          )
      end

      def uploads_prefix
        ''
      end
    end
  end
end