Compare commits
No commits in common. "1940368c43e70df843073c9d1773df99ad33817d" and "ff29f2768bf483ace073d200375c5bf6f8fa52d9" have entirely different histories.
1940368c43
...
ff29f2768b
@ -11,8 +11,6 @@ import Pachyderm
|
||||
|
||||
class AccountFollowsListViewController: UIViewController, CollectionViewController {
|
||||
|
||||
private static let pageSize = 40
|
||||
|
||||
let accountID: String
|
||||
let mastodonController: MastodonController
|
||||
let mode: AccountFollowsViewController.Mode
|
||||
@ -94,9 +92,9 @@ class AccountFollowsListViewController: UIViewController, CollectionViewControll
|
||||
private func request(for range: RequestRange) -> Request<[Account]> {
|
||||
switch mode {
|
||||
case .following:
|
||||
return Account.getFollowing(accountID, range: range.withCount(Self.pageSize))
|
||||
return Account.getFollowing(accountID, range: range)
|
||||
case .followers:
|
||||
return Account.getFollowers(accountID, range: range.withCount(Self.pageSize))
|
||||
return Account.getFollowers(accountID, range: range)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,8 +11,6 @@ import Pachyderm
|
||||
|
||||
class StatusActionAccountListCollectionViewController: UIViewController, CollectionViewController {
|
||||
|
||||
private static let pageSize = 40
|
||||
|
||||
private let statusID: String
|
||||
private let actionType: StatusActionAccountListViewController.ActionType
|
||||
private let mastodonController: MastodonController
|
||||
@ -149,9 +147,9 @@ class StatusActionAccountListCollectionViewController: UIViewController, Collect
|
||||
private func request(for range: RequestRange) -> Request<[Account]> {
|
||||
switch actionType {
|
||||
case .favorite:
|
||||
return Status.getFavourites(statusID, range: range.withCount(Self.pageSize))
|
||||
return Status.getFavourites(statusID, range: range)
|
||||
case .reblog:
|
||||
return Status.getReblogs(statusID, range: range.withCount(Self.pageSize))
|
||||
return Status.getReblogs(statusID, range: range)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ class StatusActionAccountListViewController: UIViewController {
|
||||
title = NSLocalizedString("Reblogged By", comment: "status reblogged by accounts list title")
|
||||
}
|
||||
|
||||
view.backgroundColor = .systemBackground
|
||||
view.backgroundColor = .secondarySystemBackground
|
||||
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(handleStatusDeleted), name: .statusDeleted, object: nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user