🐛 Bug fixes on profile page
This commit is contained in:
@ -84,10 +84,7 @@ class _AccountProfilePageState extends State<AccountProfilePage> {
|
||||
}
|
||||
|
||||
int get _userSocialCreditPoints {
|
||||
int birthPart =
|
||||
DateTime.now().difference(_userinfo!.createdAt.toLocal()).inSeconds;
|
||||
birthPart = birthPart >> 16;
|
||||
return _totalUpvote * 2 - _totalDownvote + birthPart;
|
||||
return _totalUpvote * 2 - _totalDownvote + _postController.postTotal.value;
|
||||
}
|
||||
|
||||
@override
|
||||
@ -97,8 +94,9 @@ class _AccountProfilePageState extends State<AccountProfilePage> {
|
||||
_postController = PostListController(author: widget.name);
|
||||
_albumPagingController.addPageRequestListener((pageKey) async {
|
||||
final client = ServiceFinder.configureClient('files');
|
||||
final resp = await client
|
||||
.get('/attachments?take=10&offset=$pageKey&author=${widget.name}');
|
||||
final resp = await client.get(
|
||||
'/attachments?take=10&offset=$pageKey&author=${widget.name}&original=true',
|
||||
);
|
||||
if (resp.statusCode == 200) {
|
||||
final result = PaginationResult.fromJson(resp.body);
|
||||
final out = result.data
|
||||
|
@ -23,6 +23,7 @@ import 'package:solian/providers/message/adaptor.dart';
|
||||
import 'package:solian/providers/websocket.dart';
|
||||
import 'package:solian/router.dart';
|
||||
import 'package:solian/screens/account/notification.dart';
|
||||
import 'package:solian/theme.dart';
|
||||
import 'package:solian/widgets/chat/chat_event.dart';
|
||||
import 'package:solian/widgets/daily_sign/history_chart.dart';
|
||||
import 'package:solian/widgets/posts/post_list.dart';
|
||||
@ -491,7 +492,9 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
||||
|
||||
/// Footer
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
mainAxisAlignment: SolianTheme.isLargeScreen(context)
|
||||
? MainAxisAlignment.start
|
||||
: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
'Powered by Solar Network',
|
||||
|
Reference in New Issue
Block a user