Add Mastodon aliases and links to Webfinger when enabled #189

Merged
raucao merged 3 commits from feature/mastodon_webfinger into master 2024-04-14 10:18:16 +00:00
Showing only changes of commit 78aff3d796 - Show all commits

View File

@@ -16,6 +16,10 @@ RSpec.describe User, type: :model do
let(:user) { build :user, cn: "jimmy", ou: "kosmos.org" }
context "Mastodon service not configured" do
before do
Setting.mastodon_enabled = false
end
it "returns nil" do
expect(user.mastodon_address).to be_nil
end