-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add Bluesky - Change "Twitter" to "X" (ugh)
- Loading branch information
1 parent
94ef279
commit 4a30b61
Showing
20 changed files
with
202 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ defmodule Changelog.Podcast do | |
field :mastodon_handle, :string | ||
field :mastodon_token, :string | ||
field :twitter_handle, :string | ||
field :bsky_handle, :string | ||
field :apple_url, :string | ||
field :spotify_url, :string | ||
field :riverside_url, :string | ||
|
@@ -79,6 +80,7 @@ defmodule Changelog.Podcast do | |
status: :publishing, | ||
is_meta: true, | ||
twitter_handle: "changelog", | ||
bsky_handle: "changelog.com", | ||
mastodon_handle: "[email protected]", | ||
mastodon_token: nil, | ||
welcome: "Your one-stop shop for all Changelog podcasts", | ||
|
@@ -105,6 +107,7 @@ defmodule Changelog.Podcast do | |
is_meta: true, | ||
vanity_domain: "https://changelog.fm", | ||
twitter_handle: "changelog", | ||
bsky_handle: "changelog.com", | ||
mastodon_handle: "[email protected]", | ||
mastodon_token: nil, | ||
welcome: "Software's best weekly news brief, deep technical interviews & talk show", | ||
|
@@ -147,7 +150,7 @@ defmodule Changelog.Podcast do | |
podcast | ||
|> cast( | ||
attrs, | ||
~w(name slug status vanity_domain schedule_note welcome description extended_description keywords mastodon_handle mastodon_token twitter_handle apple_url spotify_url riverside_url youtube_url clips_url zulip_url recorded_live partner position)a | ||
~w(name slug status vanity_domain schedule_note welcome description extended_description keywords mastodon_handle mastodon_token twitter_handle bsky_handle apple_url spotify_url riverside_url youtube_url clips_url zulip_url recorded_live partner position)a | ||
) | ||
|> validate_required([:name, :slug, :status]) | ||
|> validate_format(:vanity_domain, Regexp.http(), message: Regexp.http_message()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
</div> | ||
</div> | ||
|
||
<div class="three fields"> | ||
<div class="four fields"> | ||
<div class="field <%= AdminHelpers.error_class(f, :github_handle) %>"> | ||
<%= label(f, :github_handle, "GitHub Handle") %> | ||
<%= text_input(f, :github_handle, placeholder: "gracehopper", autocapitalize: "none", mask: "slug") %> | ||
|
@@ -45,6 +45,12 @@ | |
<%= text_input(f, :mastodon_handle, placeholder: "[email protected]", autocapitalize: "none", mask: "slug") %> | ||
<%= AdminHelpers.error_message(f, :mastodon_handle) %> | ||
</div> | ||
|
||
<div class="field <%= AdminHelpers.error_class(f, :bsky_handle) %>"> | ||
<%= label(f, :bsky_handle, "Bluesky Handle") %> | ||
<%= text_input(f, :bsky_handle, placeholder: "gracehopper", autocapitalize: "none", mask: "slug") %> | ||
<%= AdminHelpers.error_message(f, :bsky_handle) %> | ||
</div> | ||
</div> | ||
|
||
<div class="three fields"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,15 +36,22 @@ | |
<%= AdminHelpers.error_message(f, :twitter_handle) %> | ||
</div> | ||
|
||
<div class={"field #{AdminHelpers.error_class(f, :bsky_handle)}"}> | ||
<%= label(f, :bsky_handle, "On Bluesky") %> | ||
<%= text_input(f, :bsky_handle, placeholder: "changelog.com") %> | ||
</div> | ||
</div> | ||
|
||
<div class="two fields"> | ||
<div class={"field #{AdminHelpers.error_class(f, :mastodon_handle)}"}> | ||
<%= label(f, :mastodon_handle, "On Mastodon") %> | ||
<%= text_input(f, :mastodon_handle, placeholder: "[email protected]") %> | ||
</div> | ||
</div> | ||
|
||
<div class={"field #{AdminHelpers.error_class(f, :mastodon_token)}"}> | ||
<%= label(f, :mastodon_token, "Mastodon API Token") %> | ||
<%= text_input(f, :mastodon_token) %> | ||
<div class={"field #{AdminHelpers.error_class(f, :mastodon_token)}"}> | ||
<%= label(f, :mastodon_token, "Mastodon API Token") %> | ||
<%= text_input(f, :mastodon_token) %> | ||
</div> | ||
</div> | ||
|
||
<div class="two fields"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.