Fix lint
This commit is contained in:
parent
97a86bc273
commit
a8e3749320
3 changed files with 6 additions and 6 deletions
|
@ -4,6 +4,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||||
include FormattingHelper
|
include FormattingHelper
|
||||||
include NgRuleHelper
|
include NgRuleHelper
|
||||||
|
|
||||||
|
LINK_MEDIA_TYPES = ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].freeze
|
||||||
|
|
||||||
def perform
|
def perform
|
||||||
@account.schedule_refresh_if_stale!
|
@account.schedule_refresh_if_stale!
|
||||||
|
|
||||||
|
@ -645,8 +647,6 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||||
@quote ||= quote_from_tags || @object['quote'] || @object['quoteUrl'] || @object['quoteURL'] || @object['_misskey_quote']
|
@quote ||= quote_from_tags || @object['quote'] || @object['quoteUrl'] || @object['quoteURL'] || @object['_misskey_quote']
|
||||||
end
|
end
|
||||||
|
|
||||||
LINK_MEDIA_TYPES = ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].freeze
|
|
||||||
|
|
||||||
def quote_from_tags
|
def quote_from_tags
|
||||||
return @quote_from_tags if defined?(@quote_from_tags)
|
return @quote_from_tags if defined?(@quote_from_tags)
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,9 @@ class ActivityPub::Parser::StatusParser
|
||||||
|
|
||||||
NORMALIZED_LOCALE_NAMES = LanguagesHelper::SUPPORTED_LOCALES.keys.index_by(&:downcase).freeze
|
NORMALIZED_LOCALE_NAMES = LanguagesHelper::SUPPORTED_LOCALES.keys.index_by(&:downcase).freeze
|
||||||
|
|
||||||
|
SCAN_SEARCHABILITY_RE = /\[searchability:(public|followers|reactors|private)\]/
|
||||||
|
SCAN_SEARCHABILITY_FEDIBIRD_RE = /searchable_by_(all_users|followers_only|reacted_users_only|nobody)/
|
||||||
|
|
||||||
# @param [Hash] json
|
# @param [Hash] json
|
||||||
# @param [Hash] options
|
# @param [Hash] options
|
||||||
# @option options [String] :followers_collection
|
# @option options [String] :followers_collection
|
||||||
|
@ -182,9 +185,6 @@ class ActivityPub::Parser::StatusParser
|
||||||
%i(public unlisted).include?(visibility) ? :public : :limited
|
%i(public unlisted).include?(visibility) ? :public : :limited
|
||||||
end
|
end
|
||||||
|
|
||||||
SCAN_SEARCHABILITY_RE = /\[searchability:(public|followers|reactors|private)\]/
|
|
||||||
SCAN_SEARCHABILITY_FEDIBIRD_RE = /searchable_by_(all_users|followers_only|reacted_users_only|nobody)/
|
|
||||||
|
|
||||||
def default_searchability_from_bio?
|
def default_searchability_from_bio?
|
||||||
note = @account.note
|
note = @account.note
|
||||||
return false if note.blank?
|
return false if note.blank?
|
||||||
|
|
|
@ -425,7 +425,7 @@ class Status < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
emoji_reaction['count'] = emoji_reaction['account_ids'].size
|
emoji_reaction['count'] = emoji_reaction['account_ids'].size
|
||||||
public_emoji_reactions << emoji_reaction if (emoji_reaction['count']).positive?
|
public_emoji_reactions << emoji_reaction if emoji_reaction['count'].positive?
|
||||||
end
|
end
|
||||||
|
|
||||||
public_emoji_reactions
|
public_emoji_reactions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue