Skip to content

Commit

Permalink
🔀 Merge pull request #10 from Fedodo/dev
Browse files Browse the repository at this point in the history
✨ Added activity pub object
  • Loading branch information
LNA-DEV authored Jul 9, 2023
2 parents 5d3c5b7 + dfcd737 commit 860558f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/Models/CoreTypes/object.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class ActivityPubObject {
List<ActivityPubObject>? attachments;
}
4 changes: 3 additions & 1 deletion lib/Models/ObjectTypes/document.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Document {
import 'package:activitypub/Models/CoreTypes/object.dart';

class Document extends ActivityPubObject {
final String type;
final String? name;
final String? mediaType;
Expand Down
4 changes: 2 additions & 2 deletions lib/Models/post.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'dart:core';
import 'package:activitypub/Models/ObjectTypes/document.dart';

import 'CoreTypes/object.dart';
import 'collection.dart';

class Post {
class Post extends ActivityPubObject {
final List<String> to;
final String? name;
final String? summary;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: activitypub
description: A library for the ActivityPub standard. Created an also used by Fedodo.
version: 1.2.3
version: 1.2.4
repository: https://github.com/Fedodo/Fedodo.Pub.ActivityPub

environment:
Expand Down

0 comments on commit 860558f

Please sign in to comment.