Skip to content

Commit

Permalink
fix: 修复组合订阅空 subscription-userinfo 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 14, 2025
1 parent 2155cc9 commit fb21890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.16.14",
"version": "2.16.15",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
13 changes: 6 additions & 7 deletions backend/src/restful/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,13 +547,12 @@ async function downloadCollection(req, res) {
} else {
subUserInfoOfCol = collection.subUserinfo;
}
res.set(
'subscription-userinfo',
[subUserInfoOfCol, subUserInfoOfSub]
.filter((i) => i)
.join('; '),
);

const subUserInfo = [subUserInfoOfCol, subUserInfoOfSub]
.filter((i) => i)
.join('; ');
if (subUserInfo) {
res.set('subscription-userinfo', subUserInfo);
}
if (platform === 'JSON') {
if (resultFormat === 'nezha') {
output = nezhaTransform(output);
Expand Down

0 comments on commit fb21890

Please sign in to comment.