application_helper.rb 205 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2
# frozen_string_literal: true

Eugen Rochko's avatar
Eugen Rochko committed
3
module ApplicationHelper
Eugen Rochko's avatar
Eugen Rochko committed
4 5 6 7 8 9 10
  def twitter?
    user_signed_in? && !current_user.twitter.nil?
  end

  def mastodon?
    user_signed_in? && !current_user.mastodon.nil?
  end
Eugen Rochko's avatar
Eugen Rochko committed
11
end