|
@@ -486,17 +486,20 @@ export default class {
|
|
|
if (currentThread.offset === '-1') { updateOffset(); return; }
|
|
|
if (currentThread.offset === '0') mediaItems.splice(1);
|
|
|
|
|
|
- if (question) {
|
|
|
- currentThread.subscribers.forEach(subscriber => {
|
|
|
- const username = cachedFeed.user.username;
|
|
|
- const author = `${cachedFeed.user.full_name} (@${username}) `;
|
|
|
- this.bot.sendTo(subscriber, `请注意,用户${author}已开启问答互动。本次推送已在此条动态后暂停。需退订请回复:/igstory_unsub ${username}\
|
|
|
-${Object.keys(cachedFeed.stories).some(id => id > topOfFeed) ? `\n下次推送在 ${this.workInterval * 1000 / lock.feed.length} 秒后。` : ''}`);
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
return this.workOnMedia(mediaItems.reverse(), this.sendStories(`thread ${currentFeed}`, ...currentThread.subscribers))
|
|
|
- .then(updateOffset);
|
|
|
+ .then(updateOffset)
|
|
|
+ .then(() => {
|
|
|
+ if (question) {
|
|
|
+ currentThread.subscribers.forEach(subscriber => {
|
|
|
+ const username = cachedFeed.user.username;
|
|
|
+ const author = `${cachedFeed.user.full_name} (@${username}) `;
|
|
|
+ this.bot.sendTo(subscriber,
|
|
|
+ `请注意,用户${author}已开启问答互动。需退订请回复:/igstory_unsub ${username}${
|
|
|
+ Object.keys(cachedFeed.stories).some(id => id > topOfFeed) ?
|
|
|
+ `\n本次推送已截止于此条动态,下次推送在 ${Math.floor(this.workInterval * 1000 / lock.feed.length)} 秒后。` : ''}`);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|
|
|
.then(() => {
|
|
|
lock.workon++;
|