Skip to content

Commit

Permalink
Update all domain references to kitsu.app
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Aug 11, 2024
1 parent 50afc88 commit 244fdcc
Show file tree
Hide file tree
Showing 26 changed files with 94 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
working-directory: ops
run: |
git config user.name "Senko-san"
git config user.email "developers@kitsu.io"
git config user.email "developers@kitsu.app"
- name: Update Image Version
working-directory: ops
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
uses: kamilkisiela/graphql-inspector@master
with:
schema: 'schema.graphql'
endpoint: 'https://kitsu.io/api/graphql'
endpoint: 'https://kitsu.app/api/graphql'
4 changes: 2 additions & 2 deletions app/embedders/kitsu_embedder.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class KitsuEmbedder < Embedder
KITSU_URL = %r{\Ahttps?://(?:www\.|staging\.)?kitsu.io/(?<type>[^/]+)/(?<id>[^/]+).*}
KITSU_URL = %r{\Ahttps?://(?:www\.|staging\.)?kitsu(?:\.io|\.app)/(?<type>[^/]+)/(?<id>[^/]+).*}

def match?
KITSU_URL.match(url).present? && subject
Expand Down Expand Up @@ -67,6 +67,6 @@ def image
end

def canonical_url
"https://kitsu.io/#{type}/#{subject&.id || id}"
"https://kitsu.app/#{type}/#{subject&.id || id}"
end
end
2 changes: 1 addition & 1 deletion app/graphql/types/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Types::Profile < Types::BaseObject
description: 'A fully qualified URL to the profile'

def url
"https://kitsu.io/users/#{object.slug || object.id}"
"https://kitsu.app/users/#{object.slug || object.id}"
end

field :name, String,
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ApplicationMailer < ActionMailer::Base
].freeze

include Rails.application.routes.url_helpers
default from: 'Kitsu <help@kitsu.io>'
default from: 'Kitsu <help@kitsu.app>'
layout 'mailer'

rescue_from(*SMTP_HARD_BOUNCES) do
Expand Down
4 changes: 2 additions & 2 deletions app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def client_url_for(path)

def client_url_base
if Rails.env.production?
'https://kitsu.io'
'https://kitsu.app'
elsif Rails.env.staging?
'https://staging.kitsu.io'
'https://staging.kitsu.app'
else
'https://localhost'
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/feed/notification_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Feed
# Encapsulates the generation of text from a Stream notification
class NotificationPresenter
# The base URL used when constructing links to notifications
CLIENT_URL = 'https://kitsu.io/'
CLIENT_URL = 'https://kitsu.app/'

attr_reader :activity, :user

Expand Down
2 changes: 1 addition & 1 deletion app/pipelines/html_filters/hashtags_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ def link_for(hashtag, text)
end

def href_for(hashtag)
"https://kitsu.io/posts?query=%23#{hashtag}"
"https://kitsu.app/posts?query=%23#{hashtag}"
end
end
4 changes: 2 additions & 2 deletions app/services/embed_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class EmbedService
# User-Agent to use for the HTTP request. We list facebookexternalhit and Twitterbot as
# compatible to ensure we get served a version with the correct meta tags
USER_AGENT = <<-UA.squish.freeze
kitsubot/1.0 (+kitsu.io)
kitsubot/1.0 (+kitsu.app)
facebookexternalhit/1.1 (compatible)
Twitterbot/1.0 (compatible)
UA
Expand All @@ -15,7 +15,7 @@ class EmbedService
# List of Embedders to try (matched from top to bottom)
EMBEDDERS = [
# Site-specific Solutions
KitsuEmbedder, # kitsu.io
KitsuEmbedder, # kitsu.io, kitsu.app
NicoVideoEmbedder, # nicovideo.jp
GiphyMediaEmbedder, # media.giphy.com
# Embed Standards
Expand Down
2 changes: 1 addition & 1 deletion app/services/imgix_purge_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module ImgixPurgeService
module_function

def purge(url)
url = url.sub('media.kitsu.io', 'kitsu.imgix.net')
url = url.sub('media.kitsu.app', 'kitsu.imgix.net')
http.post(PURGE_ENDPOINT, url: url)
end

Expand Down
2 changes: 1 addition & 1 deletion app/services/youtube_service/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Subscription
'https://www.youtube.com/xml/feeds/videos.xml{?channel_id}'
).freeze
CALLBACK_URL = Addressable::Template.new(
'https://kitsu.io/api/hooks/{?linked_account}'
'https://kitsu.app/api/hooks/{?linked_account}'
).freeze
SUBSCRIBE_URL = 'https://pubsubhubbub.appspot.com/subscribe'.freeze

Expand Down
4 changes: 2 additions & 2 deletions app/views/layouts/mailer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<table role="presentation" class="column" cellpadding="0" cellspacing="0">
<tr>
<td class="logo-cell">
<a href="https://kitsu.io/">
<a href="https://kitsu.app/">
<%= image_tag("[email protected]", width: 64, height: 64, alt: "Kitsu") %>
</a>
</td>
Expand All @@ -53,7 +53,7 @@

<p class="unsubscribe">
This email was sent to <a href="mailto:<%= @user.email %>"><%= @user.email %></a>.
<a class="unsubscribe-link" href="https://kitsu.io/unsubscribe?email=<%= @user.email %>">
<a class="unsubscribe-link" href="https://kitsu.app/unsubscribe?email=<%= @user.email %>">
Unsubscribe
</a>
</p>
Expand Down
2 changes: 1 addition & 1 deletion app/views/user_mailer/confirmation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"name": "Confirm Email",
"handler": {
"@type": "HttpActionHandler",
"url": "https://kitsu.io/api/users/_confirm?token=<%= @token.token %>"
"url": "https://kitsu.app/api/users/_confirm?token=<%= @token.token %>"
}
},
"description": "Activate your account"
Expand Down
4 changes: 2 additions & 2 deletions app/views/user_mailer/password_reset.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<%- content_for(:preview) do %>
We've received a request to reset your password on Kitsu.io
We've received a request to reset your password on Kitsu
<%- end %>
<tr><td class="spacer-cell"></td></tr>
<tr>
<td class="section-cell section-with-action section-with-illust">
<%= image_tag("illustrations/detective.png", width: 128, height: 128, alt: "") %>
<h1 class="text-header">Forgot Password?</h1>
<p class="text-subheader">
We've received a request to reset your password on Kitsu.io,<wbr />
We've received a request to reset your password on Kitsu,<wbr />
if you didn't make this request - ignore this email.
</p>
<a href="<%= @reset_link %>" class="btn">
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session

config.action_mailer.default_url_options = {
host: 'kitsu.io'
host: 'kitsu.app'
}

# Enable Rack-Attack middleware
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session

config.action_mailer.default_url_options = {
host: 'staging.kitsu.io'
host: 'staging.kitsu.app'
}

# Enable Rack-Attack middleware
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/rails_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
proc do
namespace = @abstract_model.table_name.parameterize
slug = @object.try(:slug) || @object.try(:name)
redirect_to "https://kitsu.io/#{namespace}/#{slug}"
redirect_to "https://kitsu.app/#{namespace}/#{slug}"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/shrine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Handle derivatives in background
Shrine.plugin :derivatives
Shrine.plugin :backgrounding
Shrine.plugin :url_options, store: { host: 'https://media.kitsu.io' }
Shrine.plugin :url_options, store: { host: 'https://media.kitsu.app' }

if Rails.env.production? || Rails.env.staging?
# Primary storage
Expand Down
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
)
# note the below is just a Rack response
[500, {}, [<<-MESSAGE.squish]]
An unknown error has occurred. If you continue to have problems, contact help@kitsu.io\n
An unknown error has occurred. If you continue to have problems, contact help@kitsu.app\n
MESSAGE
end
2 changes: 1 addition & 1 deletion config/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
adapter = SitemapGenerator::AwsSdkAdapter.new('kitsu-media')
SitemapGenerator::Sitemap.adapter = adapter
end
SitemapGenerator::Sitemap.default_host = 'https://kitsu.io'
SitemapGenerator::Sitemap.default_host = 'https://kitsu.app'
SitemapGenerator::Sitemap.create do
[Anime, Manga, Drama].each do |model|
resource = model.table_name
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170515122347_add_deleted_account_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def up
User.create!(
name: 'Deleted',
id: -10,
email: 'noreply+deleted@kitsu.io',
email: 'noreply+deleted@kitsu.app',
password: SecureRandom.base64(45)
)
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20210605031927_add_system_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def change
User.new(
name: 'System',
id: -11,
email: 'noreply+system@kitsu.io',
email: 'noreply+system@kitsu.app',
password: SecureRandom.base64(45)
).save!(validate: false)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Action classes act like Procs which take a hash as a parameter (defined by the `parameter` calls
# in the DSL) and return a Struct-like object. To use an Action, simply `.call()` them, like this:
#
# ResetPassword.call(email: 'help@kitsu.io')
# ResetPassword.call(email: 'help@kitsu.app')
#
# One thing to note is that any unknown parameters are silently ignored.
class Action
Expand Down
2 changes: 1 addition & 1 deletion lib/anidb_category_import/category_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def apply!
def run!
ActiveRecord::Base.logger = Logger.new(nil)
Chewy.strategy(:bypass)
base_media_url = 'https://media.kitsu.io/import_files/'
base_media_url = 'https://media.kitsu.app/import_files/'
filename = 'anidb_category.json'
ImportFile.new(base_media_url, filename).apply!
end
Expand Down
2 changes: 1 addition & 1 deletion lib/anidb_category_import/media_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def apply!
def run!
ActiveRecord::Base.logger = Logger.new(nil)
Chewy.strategy(:bypass)
base_media_url = 'https://media.kitsu.io/import_files/'
base_media_url = 'https://media.kitsu.app/import_files/'
anime_filename = 'anidb_anime_category_assoc.json'
genre_map_filename = 'kitsu_anidb_genre_category_map.json'
ImportFile.new(base_media_url, anime_filename, genre_map_filename).apply!
Expand Down
Loading

0 comments on commit 244fdcc

Please sign in to comment.