mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 17:26:43 +00:00
Merge pull request #1190 from pixelfed/frontend-ui-refactor
Update ExportSettings
This commit is contained in:
commit
b89778384b
1 changed files with 12 additions and 4 deletions
|
@ -34,7 +34,9 @@ trait ExportSettings
|
||||||
|
|
||||||
return response()->streamDownload(function () use ($data) {
|
return response()->streamDownload(function () use ($data) {
|
||||||
echo json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
|
echo json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
|
||||||
}, 'account.json');
|
}, 'account.json', [
|
||||||
|
'Content-Type' => 'application/json'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exportFollowing()
|
public function exportFollowing()
|
||||||
|
@ -46,7 +48,9 @@ trait ExportSettings
|
||||||
});
|
});
|
||||||
return response()->streamDownload(function () use($data) {
|
return response()->streamDownload(function () use($data) {
|
||||||
echo $data;
|
echo $data;
|
||||||
}, 'following.json');
|
}, 'following.json', [
|
||||||
|
'Content-Type' => 'application/json'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exportFollowers()
|
public function exportFollowers()
|
||||||
|
@ -58,7 +62,9 @@ trait ExportSettings
|
||||||
});
|
});
|
||||||
return response()->streamDownload(function () use($data) {
|
return response()->streamDownload(function () use($data) {
|
||||||
echo $data;
|
echo $data;
|
||||||
}, 'followers.json');
|
}, 'followers.json', [
|
||||||
|
'Content-Type' => 'application/json'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function exportMuteBlockList()
|
public function exportMuteBlockList()
|
||||||
|
@ -78,7 +84,9 @@ trait ExportSettings
|
||||||
});
|
});
|
||||||
return response()->streamDownload(function () use($data) {
|
return response()->streamDownload(function () use($data) {
|
||||||
echo $data;
|
echo $data;
|
||||||
}, 'muted-and-blocked-accounts.json');
|
}, 'muted-and-blocked-accounts.json', [
|
||||||
|
'Content-Type' => 'application/json'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue