llonebot-dist 7.12.5 → 7.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llbot.js
CHANGED
|
@@ -11385,7 +11385,7 @@ var OB11HeartbeatEvent = class extends OB11BaseMetaEvent {
|
|
|
11385
11385
|
};
|
|
11386
11386
|
//#endregion
|
|
11387
11387
|
//#region src/version.ts
|
|
11388
|
-
var version$2 = "7.12.
|
|
11388
|
+
var version$2 = "7.12.6";
|
|
11389
11389
|
//#endregion
|
|
11390
11390
|
//#region node_modules/sift/es5m/index.js
|
|
11391
11391
|
/******************************************************************************
|
|
@@ -25697,7 +25697,7 @@ var GetGroupNotice = class extends BaseAction {
|
|
|
25697
25697
|
async _handle(payload) {
|
|
25698
25698
|
const data = await this.ctx.ntGroupApi.getGroupBulletinList(payload.group_id.toString());
|
|
25699
25699
|
const result = [];
|
|
25700
|
-
for (const feed of data.feeds) result.push({
|
|
25700
|
+
for (const feed of [...data.feeds, ...data.inst]) result.push({
|
|
25701
25701
|
notice_id: feed.feedId,
|
|
25702
25702
|
sender_id: +feed.uin,
|
|
25703
25703
|
publish_time: +feed.publishTime,
|
|
@@ -25714,9 +25714,11 @@ var GetGroupNotice = class extends BaseAction {
|
|
|
25714
25714
|
settings: {
|
|
25715
25715
|
is_show_edit_card: !!feed.settings.isShowEditCard,
|
|
25716
25716
|
tip_window: !feed.settings.tipWindowType,
|
|
25717
|
-
confirm_required: !!feed.settings.confirmRequired
|
|
25717
|
+
confirm_required: !!feed.settings.confirmRequired,
|
|
25718
|
+
pinned: !!feed.pinned
|
|
25718
25719
|
}
|
|
25719
25720
|
});
|
|
25721
|
+
if (data.inst.length > 0) return result.sort((a, b) => b.publish_time - a.publish_time);
|
|
25720
25722
|
return result;
|
|
25721
25723
|
}
|
|
25722
25724
|
};
|