2024-09-06 14:06:57 +00:00
|
|
|
# plugins/discourse-legacy_links/plugin.rb
|
|
|
|
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# name: discourse-legacy_links
|
|
|
|
# about: A plugin to handle legacy Gossamer Forums URLs
|
2024-09-07 12:20:10 +00:00
|
|
|
# version: 0.28
|
2024-09-06 14:06:57 +00:00
|
|
|
# authors: saint@federated.computer
|
|
|
|
# url: https://gitea.federated.computer/saint/discourse-legacy_links.git
|
|
|
|
|
|
|
|
# require 'digest'
|
|
|
|
|
2024-09-06 16:59:53 +00:00
|
|
|
# enabled_site_setting :discourse_legacy_links_enabled
|
2024-09-06 14:06:57 +00:00
|
|
|
|
2024-09-07 12:20:10 +00:00
|
|
|
module DiscourseLegacyLinks
|
|
|
|
class Engine < ::Rails::Engine
|
|
|
|
engine_name 'discourse_legacy_links'
|
|
|
|
isolate_namespace DiscourseLegacyLinks
|
2024-09-06 14:06:57 +00:00
|
|
|
end
|
|
|
|
end
|
2024-09-06 14:51:22 +00:00
|
|
|
|
2024-09-07 12:20:10 +00:00
|
|
|
# Load the plugin's engine and routes
|
|
|
|
require_relative 'lib/discourse_legacy_links/engine'
|
|
|
|
require_relative 'config/routes'
|