Fix lint
This commit is contained in:
parent
f3c3ea42c2
commit
91e252259d
5 changed files with 11 additions and 9 deletions
|
@ -63,11 +63,13 @@ export const MoreLink: React.FC = () => {
|
|||
|
||||
const emojiReactionMenu = useMemo(() => {
|
||||
if (!enableEmojiReaction) return [];
|
||||
return [{
|
||||
text: intl.formatMessage(messages.emoji_reactions),
|
||||
to: '/emoji_reactions',
|
||||
}];
|
||||
}, [enableEmojiReaction, intl]);
|
||||
return [
|
||||
{
|
||||
text: intl.formatMessage(messages.emoji_reactions),
|
||||
to: '/emoji_reactions',
|
||||
},
|
||||
];
|
||||
}, [intl]);
|
||||
|
||||
const menu = useMemo(() => {
|
||||
const arr: MenuItem[] = [
|
||||
|
|
|
@ -29,7 +29,7 @@ class ActivityPub::Parser::CustomEmojiParser
|
|||
nil
|
||||
end
|
||||
|
||||
def is_sensitive # rubocop:disable Naming/PredicateName
|
||||
def is_sensitive # rubocop:disable Naming/PredicatePrefix
|
||||
@json['isSensitive'].presence || false
|
||||
end
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ class REST::CustomEmojiSlimSerializer < ActiveModel::Serializer
|
|||
object.is_sensitive
|
||||
end
|
||||
|
||||
def is_sensitive # rubocop:disable Naming/PredicateName
|
||||
def is_sensitive # rubocop:disable Naming/PredicatePrefix
|
||||
sensitive
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue