mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
fix fan/follow params
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -18,14 +18,15 @@ class FollowController extends GetxController with GetTickerProviderStateMixin {
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
final Map? args = Get.arguments;
|
||||
final ownerMid = Accounts.main.mid;
|
||||
final mid = Get.parameters['mid'];
|
||||
this.mid = mid != null ? int.parse(mid) : ownerMid;
|
||||
final int? mid = args?['mid'];
|
||||
this.mid = mid ?? ownerMid;
|
||||
isOwner = ownerMid == this.mid;
|
||||
if (isOwner) {
|
||||
queryFollowUpTags();
|
||||
} else {
|
||||
final name = Get.parameters['name'];
|
||||
final String? name = args?['name'];
|
||||
this.name = RxnString(name);
|
||||
if (name == null) {
|
||||
_queryUserName();
|
||||
|
||||
Reference in New Issue
Block a user