Add limited post icon
This commit is contained in:
parent
d6257e1469
commit
ec16074def
9 changed files with 18 additions and 6 deletions
|
@ -77,6 +77,8 @@ module StatusesHelper
|
||||||
fa_icon 'key fw'
|
fa_icon 'key fw'
|
||||||
when 'private'
|
when 'private'
|
||||||
fa_icon 'lock fw'
|
fa_icon 'lock fw'
|
||||||
|
when 'limited'
|
||||||
|
fa_icon 'get-pocket fw'
|
||||||
when 'direct'
|
when 'direct'
|
||||||
fa_icon 'at fw'
|
fa_icon 'at fw'
|
||||||
end
|
end
|
||||||
|
|
|
@ -69,6 +69,7 @@ const messages = defineMessages({
|
||||||
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
||||||
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
||||||
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
||||||
|
limited_short: { id: 'privacy.limited.short', defaultMessage: 'Limited menbers only' },
|
||||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
||||||
edited: { id: 'status.edited', defaultMessage: 'Edited {date}' },
|
edited: { id: 'status.edited', defaultMessage: 'Edited {date}' },
|
||||||
});
|
});
|
||||||
|
@ -398,6 +399,7 @@ class Status extends ImmutablePureComponent {
|
||||||
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
||||||
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
||||||
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
||||||
|
'limited': { icon: 'get-pocket', text: intl.formatMessage(messages.limited_short) },
|
||||||
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -233,8 +233,8 @@ class PrivacyDropdown extends PureComponent {
|
||||||
{ icon: 'cloud', value: 'public_unlisted', text: formatMessage(messages.public_unlisted_short), meta: formatMessage(messages.public_unlisted_long) },
|
{ icon: 'cloud', value: 'public_unlisted', text: formatMessage(messages.public_unlisted_short), meta: formatMessage(messages.public_unlisted_long) },
|
||||||
{ icon: 'key', value: 'login', text: formatMessage(messages.login_short), meta: formatMessage(messages.login_long) },
|
{ icon: 'key', value: 'login', text: formatMessage(messages.login_short), meta: formatMessage(messages.login_long) },
|
||||||
{ icon: 'unlock', value: 'unlisted', text: formatMessage(messages.unlisted_short), meta: formatMessage(messages.unlisted_long) },
|
{ icon: 'unlock', value: 'unlisted', text: formatMessage(messages.unlisted_short), meta: formatMessage(messages.unlisted_long) },
|
||||||
{ icon: 'exchange', value: 'mutual', text: formatMessage(messages.mutual_short), meta: formatMessage(messages.mutual_long) },
|
|
||||||
{ icon: 'lock', value: 'private', text: formatMessage(messages.private_short), meta: formatMessage(messages.private_long) },
|
{ icon: 'lock', value: 'private', text: formatMessage(messages.private_short), meta: formatMessage(messages.private_long) },
|
||||||
|
{ icon: 'exchange', value: 'mutual', text: formatMessage(messages.mutual_short), meta: formatMessage(messages.mutual_long) },
|
||||||
{ icon: 'at', value: 'direct', text: formatMessage(messages.direct_short), meta: formatMessage(messages.direct_long) },
|
{ icon: 'at', value: 'direct', text: formatMessage(messages.direct_short), meta: formatMessage(messages.direct_long) },
|
||||||
];
|
];
|
||||||
this.selectableOptions = [...this.options];
|
this.selectableOptions = [...this.options];
|
||||||
|
|
|
@ -20,6 +20,7 @@ const messages = defineMessages({
|
||||||
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
||||||
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
||||||
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
||||||
|
limited_short: { id: 'privacy.limited.short', defaultMessage: 'Limited menbers only' },
|
||||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -51,6 +52,7 @@ class StatusCheckBox extends PureComponent {
|
||||||
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
||||||
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
||||||
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
||||||
|
'limited': { icon: 'get-pocket', text: intl.formatMessage(messages.limited_short) },
|
||||||
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ const messages = defineMessages({
|
||||||
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
||||||
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
||||||
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
||||||
|
limited_short: { id: 'privacy.limited.short', defaultMessage: 'Limited menbers only' },
|
||||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
||||||
searchability_public_short: { id: 'searchability.public.short', defaultMessage: 'Public' },
|
searchability_public_short: { id: 'searchability.public.short', defaultMessage: 'Public' },
|
||||||
searchability_private_short: { id: 'searchability.unlisted.short', defaultMessage: 'Followers' },
|
searchability_private_short: { id: 'searchability.unlisted.short', defaultMessage: 'Followers' },
|
||||||
|
@ -249,6 +250,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||||
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
||||||
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
||||||
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
||||||
|
'limited': { icon: 'get-pocket', text: intl.formatMessage(messages.limited_short) },
|
||||||
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ const messages = defineMessages({
|
||||||
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
public_unlisted_short: { id: 'privacy.public_unlisted.short', defaultMessage: 'Public unlisted' },
|
||||||
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
login_short: { id: 'privacy.login.short', defaultMessage: 'Login only' },
|
||||||
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
private_short: { id: 'privacy.private.short', defaultMessage: 'Followers only' },
|
||||||
|
limited_short: { id: 'privacy.limited.short', defaultMessage: 'Limited menbers only' },
|
||||||
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
direct_short: { id: 'privacy.direct.short', defaultMessage: 'Mentioned people only' },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -94,6 +95,7 @@ class BoostModal extends ImmutablePureComponent {
|
||||||
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
'public_unlisted': { icon: 'cloud', text: intl.formatMessage(messages.public_unlisted_short) },
|
||||||
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
'login': { icon: 'key', text: intl.formatMessage(messages.login_short) },
|
||||||
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
'private': { icon: 'lock', text: intl.formatMessage(messages.private_short) },
|
||||||
|
'limited': { icon: 'get-pocket', text: intl.formatMessage(messages.limited_short) },
|
||||||
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
'direct': { icon: 'at', text: intl.formatMessage(messages.direct_short) },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -520,8 +520,11 @@
|
||||||
"privacy.change": "Change post privacy",
|
"privacy.change": "Change post privacy",
|
||||||
"privacy.direct.long": "Visible for mentioned users only",
|
"privacy.direct.long": "Visible for mentioned users only",
|
||||||
"privacy.direct.short": "Mentioned people only",
|
"privacy.direct.short": "Mentioned people only",
|
||||||
|
"privacy.limited.short": "Limited",
|
||||||
"privacy.login.long": "Visible for login users only",
|
"privacy.login.long": "Visible for login users only",
|
||||||
"privacy.login.short": "Login only",
|
"privacy.login.short": "Login only",
|
||||||
|
"privacy.mutual.long": "Mutual followers only",
|
||||||
|
"privacy.mutual.short": "Mutual",
|
||||||
"privacy.private.long": "Visible for followers only",
|
"privacy.private.long": "Visible for followers only",
|
||||||
"privacy.private.short": "Followers only",
|
"privacy.private.short": "Followers only",
|
||||||
"privacy.public.long": "Visible for all",
|
"privacy.public.long": "Visible for all",
|
||||||
|
|
|
@ -526,8 +526,11 @@
|
||||||
"privacy.change": "公開範囲を変更",
|
"privacy.change": "公開範囲を変更",
|
||||||
"privacy.direct.long": "指定された相手のみ閲覧可",
|
"privacy.direct.long": "指定された相手のみ閲覧可",
|
||||||
"privacy.direct.short": "指定された相手のみ",
|
"privacy.direct.short": "指定された相手のみ",
|
||||||
|
"privacy.limited.short": "限定投稿",
|
||||||
"privacy.login.long": "ログインユーザーのみ閲覧可、公開",
|
"privacy.login.long": "ログインユーザーのみ閲覧可、公開",
|
||||||
"privacy.login.short": "ログインユーザーのみ",
|
"privacy.login.short": "ログインユーザーのみ",
|
||||||
|
"privacy.mutual.long": "相互フォローさんのみ閲覧可、限定投稿",
|
||||||
|
"privacy.mutual.short": "相互のみ",
|
||||||
"privacy.private.long": "フォロワーのみ閲覧可",
|
"privacy.private.long": "フォロワーのみ閲覧可",
|
||||||
"privacy.private.short": "フォロワーのみ",
|
"privacy.private.short": "フォロワーのみ",
|
||||||
"privacy.public.long": "誰でも閲覧可、ホーム+ローカル+連合TL",
|
"privacy.public.long": "誰でも閲覧可、ホーム+ローカル+連合TL",
|
||||||
|
|
|
@ -66,11 +66,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def visibility_ex
|
def visibility_ex
|
||||||
if object.limited_visibility?
|
object.visibility
|
||||||
'private'
|
|
||||||
else
|
|
||||||
object.visibility
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def searchability
|
def searchability
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue