diff options
author | nullkal <nullkal@users.noreply.github.com> | 2017-08-18 00:52:40 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-17 17:52:40 +0200 |
commit | 075d6a1e13aa6477c656e9dbe03e6720cb4e2b32 (patch) | |
tree | 9d84b068162636ece4fd82fdd1d2e528480086f1 /app/helpers | |
parent | 54a04e36587840e330a0a4df7c4e1855a3c92e03 (diff) |
Show what protocol is used for accounts in admin/accounts#index (#4622)
* Show what protocol used for in admin/accounts#index * Add frozen_string_literal
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/account_helper.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/helpers/account_helper.rb b/app/helpers/account_helper.rb new file mode 100644 index 000000000..00d4fc657 --- /dev/null +++ b/app/helpers/account_helper.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module AccountHelper + def protocol_for_display(protocol) + case protocol + when 'activitypub' + 'ActivityPub' + when 'ostatus' + 'OStatus' + else + protocol + end + end +end |