mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-09 19:56:20 +01:00
Fix Style/MultipleComparison
This commit is contained in:
parent
5cf37248cc
commit
b5d3ca0419
@ -29,9 +29,6 @@ Style/IfUnlessModifier:
|
|||||||
Style/KeywordArgumentsMerging:
|
Style/KeywordArgumentsMerging:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Style/MultipleComparison:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Style/NumericLiterals:
|
Style/NumericLiterals:
|
||||||
AllowedPatterns:
|
AllowedPatterns:
|
||||||
- \d{4}_\d{2}_\d{2}_\d{6}
|
- \d{4}_\d{2}_\d{2}_\d{6}
|
||||||
|
@ -13,7 +13,7 @@ class ActivityPub::TagManager
|
|||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
def public_collection?(uri)
|
def public_collection?(uri)
|
||||||
uri == COLLECTIONS[:public] || uri == 'as:Public' || uri == 'Public'
|
uri == COLLECTIONS[:public] || ['as:Public', 'Public'].include?(uri)
|
||||||
end
|
end
|
||||||
|
|
||||||
def url_for(target)
|
def url_for(target)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user