|
@@ -63,7 +63,8 @@ function sub(chat: IChat, args: string[], reply: (msg: string) => any,
|
|
|
return reply(`订阅链接格式错误:
|
|
|
示例:
|
|
|
https://www.instagram.com/tomoyo_kurosawa_/
|
|
|
-https://www.instagram.com/p/B6GHRSmgV-7/`);
|
|
|
+https://www.instagram.com/p/B6GHRSmgV-7/
|
|
|
+https://www.instagram.com/tomoyo_kurosawa_/p/B6GHRSmgV-7/`);
|
|
|
}
|
|
|
let offset = '0';
|
|
|
const subscribeTo = (link: string, config: {id?: number, msg?: string} = {}) => {
|
|
@@ -99,7 +100,6 @@ https://www.instagram.com/p/B6GHRSmgV-7/`);
|
|
|
if (matched.postUrlSegment) {
|
|
|
offset = BigNumOps.plus(urlSegmentToId(matched.postUrlSegment), '-1');
|
|
|
getPostOwner(matched.postUrlSegment).then(userName => {
|
|
|
- delete matched.postUrlSegment;
|
|
|
matched.userName = userName.split(':')[0];
|
|
|
if (!tryFindSub(matched.userName)) newSub(userName);
|
|
|
}).catch((parsedErr: Error) => {
|