refactor(transfer): strip domain from page key by default #873
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Artrans 文件的评论 PageKey 可能是完整的 URL(包含 domain 部分),然而我们希望迁移到 Artalk 后 PageKey 使用相对路径以便于部署和后期迁移。
此 PR 修改 Transfer 功能:在导入评论时,默认会去掉 PageKey 中的 Domain 部分
(如果需要保留 PageKey 中的 domain,可以将导入参数
url_keep_domain
设置为true
)The PageKey for Artrans file comments might be a complete URL (including the domain part). However, we hope to migrate to using relative paths for PageKey in Artalk for easier deployment and future migrations.
This PR modifies the Transfer function: when importing comments, it will, by default, remove the domain part from the PageKey.
(If it's necessary to retain the domain in the PageKey, you can set the import parameter
url_keep_domain
totrue
)