mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-28 05:34:41 +00:00
feat: upgrade ubuntu version to 22.04 in github action (#7764)
* feat: upgrade ubuntu version to 22.04 in github action * fix: cargo clippy
This commit is contained in:
parent
954e844a21
commit
8f63667282
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -338,7 +338,7 @@ jobs:
|
||||
- {
|
||||
arch: x86_64,
|
||||
target: x86_64-unknown-linux-gnu,
|
||||
os: ubuntu-20.04,
|
||||
os: ubuntu-22.04,
|
||||
extra-build-args: "",
|
||||
flutter_profile: production-linux-x86_64,
|
||||
}
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
import 'package:appflowy/plugins/document/presentation/editor_plugins/link_preview/custom_link_parser.dart';
|
||||
import 'package:appflowy_backend/log.dart';
|
||||
|
||||
import 'package:http/http.dart' as http;
|
||||
// ignore: depend_on_referenced_packages
|
||||
import 'package:html/parser.dart' as html_parser;
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
abstract class LinkInfoParser {
|
||||
Future<LinkInfo?> parse(
|
||||
@ -70,7 +69,7 @@ class DefaultParser implements LinkInfoParser {
|
||||
}
|
||||
|
||||
final favicon =
|
||||
'https://www.google.com/s2/favicons?sz=64&domain=${link.host}';
|
||||
'https://www.faviconextractor.com/favicon/${link.host}?larger=true';
|
||||
|
||||
return LinkInfo(
|
||||
url: '$link',
|
||||
|
||||
@ -593,7 +593,7 @@ impl UserManager {
|
||||
if let Ok(member_record) = select_workspace_member(db, &workspace_id.to_string(), uid) {
|
||||
if is_older_than_n_minutes(member_record.updated_at, 10) {
|
||||
self
|
||||
.get_workspace_member_info_from_remote(&workspace_id, uid)
|
||||
.get_workspace_member_info_from_remote(workspace_id, uid)
|
||||
.await?;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user