Skip to content

Commit c2cc816

Browse files
committed
feat: include custom data in attachment uploads
1 parent 03414b5 commit c2cc816

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/stream_feeds/lib/src/repository/activities_repository.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class ActivitiesRepository {
7272
if (uploaded == null) return null;
7373

7474
return api.Attachment(
75-
custom: const {},
7675
type: uploaded.type,
76+
custom: {...?uploaded.custom},
7777
assetUrl: uploaded.remoteUrl,
7878
imageUrl: uploaded.remoteUrl,
7979
thumbUrl: uploaded.thumbnailUrl,

packages/stream_feeds/lib/src/repository/comments_repository.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ class CommentsRepository {
166166
if (uploaded == null) return null;
167167

168168
return api.Attachment(
169-
custom: const {},
170169
type: uploaded.type,
170+
custom: {...?uploaded.custom},
171171
assetUrl: uploaded.remoteUrl,
172172
imageUrl: uploaded.remoteUrl,
173173
thumbUrl: uploaded.thumbnailUrl,

0 commit comments

Comments
 (0)