mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Fix misc comment typos (#37183)
This commit is contained in:
@@ -11,7 +11,7 @@ import type {
|
|||||||
import type { ApiReportJSON } from 'mastodon/api_types/reports';
|
import type { ApiReportJSON } from 'mastodon/api_types/reports';
|
||||||
|
|
||||||
// Maximum number of avatars displayed in a notification group
|
// Maximum number of avatars displayed in a notification group
|
||||||
// This corresponds to the max lenght of `group.sampleAccountIds`
|
// This corresponds to the max length of `group.sampleAccountIds`
|
||||||
export const NOTIFICATIONS_GROUP_MAX_AVATARS = 8;
|
export const NOTIFICATIONS_GROUP_MAX_AVATARS = 8;
|
||||||
|
|
||||||
interface BaseNotificationGroup
|
interface BaseNotificationGroup
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ module ApplicationExtension
|
|||||||
end
|
end
|
||||||
|
|
||||||
def redirect_uris
|
def redirect_uris
|
||||||
# Doorkeeper stores the redirect_uri value as a newline delimeted list in
|
# Doorkeeper stores the redirect_uri value as a newline delimited list in
|
||||||
# the database:
|
# the database:
|
||||||
redirect_uri.split
|
redirect_uri.split
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class BulkImport < ApplicationRecord
|
|||||||
BulkImport.increment_counter(:processed_items, bulk_import_id)
|
BulkImport.increment_counter(:processed_items, bulk_import_id)
|
||||||
BulkImport.increment_counter(:imported_items, bulk_import_id) if imported
|
BulkImport.increment_counter(:imported_items, bulk_import_id) if imported
|
||||||
|
|
||||||
# Since the incrementation has been done atomically, concurrent access to `bulk_import` is now bening
|
# Since the incrementation has been done atomically, concurrent access to `bulk_import` is now benign
|
||||||
bulk_import = BulkImport.find(bulk_import_id)
|
bulk_import = BulkImport.find(bulk_import_id)
|
||||||
bulk_import.update!(state: :finished, finished_at: Time.now.utc) if bulk_import.processed_items == bulk_import.total_items
|
bulk_import.update!(state: :finished, finished_at: Time.now.utc) if bulk_import.processed_items == bulk_import.total_items
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user