@@ -123,34 +123,47 @@ export function exportActorProfile({
123
123
}
124
124
125
125
if ( lists ) {
126
- manifest . contents . activitypub . contents [ 'lists.csv ' ] = {
126
+ manifest . contents . activitypub . contents [ 'lists.json ' ] = {
127
127
url : 'https://docs.joinmastodon.org/user/moving/#export'
128
128
}
129
- pack . entry ( { name : 'activitypub/lists.csv' } , lists )
129
+ pack . entry (
130
+ { name : 'activitypub/lists.json' } ,
131
+ JSON . stringify ( lists , null , 2 )
132
+ )
130
133
}
131
134
132
135
if ( blockedAccounts ) {
133
- manifest . contents . activitypub . contents [ 'blocked_accounts.csv ' ] = {
136
+ manifest . contents . activitypub . contents [ 'blocked_accounts.json ' ] = {
134
137
url : 'https://docs.joinmastodon.org/user/moving/#export'
135
138
}
136
- pack . entry ( { name : 'activitypub/blocked_accounts.csv' } , blockedAccounts )
139
+ pack . entry (
140
+ { name : 'activitypub/blocked_accounts.json' } ,
141
+ JSON . stringify ( blockedAccounts , null , 2 )
142
+ )
137
143
}
138
144
139
145
if ( blockedDomains ) {
140
- manifest . contents . activitypub . contents [ 'blocked_domains.csv ' ] = {
146
+ manifest . contents . activitypub . contents [ 'blocked_domains.json ' ] = {
141
147
url : 'https://docs.joinmastodon.org/user/moving/#export'
142
148
}
143
- pack . entry ( { name : 'activitypub/blocked_domains.csv' } , blockedDomains )
149
+ pack . entry (
150
+ { name : 'activitypub/blocked_domains.csv' } ,
151
+ JSON . stringify ( blockedDomains , null , 2 )
152
+ )
144
153
}
145
154
146
155
if ( mutedAccounts ) {
147
- manifest . contents . activitypub . contents [ 'muted_accounts.csv ' ] = {
156
+ manifest . contents . activitypub . contents [ 'muted_accounts.json ' ] = {
148
157
url : 'https://docs.joinmastodon.org/user/moving/#export'
149
158
}
150
- pack . entry ( { name : 'activitypub/muted_accounts.csv' } , mutedAccounts )
159
+ pack . entry (
160
+ { name : 'activitypub/muted_accounts.json' } ,
161
+ JSON . stringify ( mutedAccounts , null , 2 )
162
+ )
151
163
}
152
164
153
165
pack . entry ( { name : 'manifest.yaml' } , YAML . stringify ( manifest ) )
166
+ pack . finalize ( )
154
167
155
168
return pack
156
169
}
0 commit comments