From 55ad8fa715e3c9697922645a647c2dce5d93b8ad Mon Sep 17 00:00:00 2001 From: Lukas Nagel Date: Tue, 4 Jul 2023 06:52:36 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20actor=20published=20?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Models/actor.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Models/actor.dart b/lib/Models/actor.dart index 58a24df..60496c9 100644 --- a/lib/Models/actor.dart +++ b/lib/Models/actor.dart @@ -49,7 +49,7 @@ class Actor { icon = getMedia(json["icon"]), publicKey = PublicKey.fromJson(json["publicKey"]), endpoints = Endpoints.fromJson(json["endpoints"]), - published = DateTime.tryParse(json["published"]); + published = json["published"] != null ? DateTime.tryParse(json["published"]) : null; static Media? getMedia(dynamic json) { if (json != null) { From fbee15d238f069c2761fdee21b019c94b46eaa0a Mon Sep 17 00:00:00 2001 From: Lukas Nagel Date: Tue, 4 Jul 2023 06:52:53 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20Updated=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 21eff9d..f886a94 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: activitypub description: A library for the ActivityPub standard. Created an also used by Fedodo. -version: 1.2.0 +version: 1.2.1 repository: https://github.com/Fedodo/Fedodo.Pub.ActivityPub environment: