# スタッフのお知らせ機能に追加された新しい「Added By...」を無効にする方法は？

**URL:** https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043
**Category:** Support
**Created:** [2025 年 2 月 19 日午前 7:15 UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043 "2025-02-19T07:15:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [2025 年 2 月 19 日午前 7:15 UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043/1 "2025-02-19T07:15:18Z")

</div>

こんにちは  
スタッフ通知に、スタッフまたは管理者が追加したスタッフ通知に体系的に「Added by Name-of-staff」が追加されるという新しい変更があったことに気づきました。

しかし、私たちのユースケースでは、この追加された強制的な「Added by Name」を含めたくない、または含める必要のないスタッフ通知があります。

1. スタッフがしばらく投稿していない場合、自動スタッフ通知が表示されます。「Person hasn’t made their post in a while…etc」または初めての投稿の場合、「Made their first post, welcome them to the community」という通知が表示されますが、私はこれをそのスタッフの役職と役割に変更します。例えば、自動スタッフ通知を削除し、「Person is a Product Manager in the Analytics Team.」のように更新します。この場合、「Person is a Product Manager in the Analytics Team (Added by @gassim)」にしたくありません。😢
2. リソース、スライド、または録画のフォローアップ投稿の場合、私またはスタッフの誰かがリソースへのリンクで返信し、その上に「📹 Recording」のようなスタッフ通知を追加しますが、「📹 Recording (Added by @gassim)」と表示されるのは望ましくありません。

上記のユースケースでは、名前を含めることは関連性がありません。誰がスタッフ通知を追加したかを実際に把握する必要がある場合は、Data Explorerまたは管理者 \> ログ \> スタッフアクション - アクション：「スタッフノートを追加」から確認できます。

スタッフに（Added by）を含めてほしい場合は、含めたい場合に手動で行うことができます。

この新機能を無効にする方法はありますか？

ありがとうございます！

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025 年 2 月 24 日午後 5:42 UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043/2 "2025-02-24T17:42:27Z")

</div>

これに対する設定ソリューションはありません。ただし、JavaScript を使用すると実現できます。

テーマまたは新しいテーマコンポーネントで、JS タブに以下を追加します。

 ![モバイル最適化されたウェブサイト開発インターフェイスを示し、選択されている「JS」タブを指す矢印があり、JavaScript 編集オプションを示しています。(AI によるキャプション)](https://global.discourse-cdn.com/meta/original/4X/5/c/d/5cd36f214fed3cf38dffd36ef40611b976e05a11.png)

```js
import { apiInitializer } from "discourse/lib/api";
import { schedule } from "@ember/runloop";

export default apiInitializer((api) => {
  const current = api.getCurrentUser();
  if (!current || !current.staff) {
    return;
  }

  // スタッフ通知を含む最初の段落以降のすべてを削除します。
  api.decorateCookedElement((element, helper) => {
    const post = helper?.getModel();
    if (!post || !post.notice) {
      return;
    }

    schedule("afterRender", () => {
      const postNoticeMessage = document.querySelector(
        `article[data-post-id="${post.id}"] .post-notice-message`
      );

      if (postNoticeMessage) {
        postNoticeMessage.replaceWith(postNoticeMessage.firstChild);
      }
    });
  });
});

```

これで十分なはずです。

---

<div class="post-metadata">

### Author: ![Bas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bas/32/294929_2.png) [@Bas](https://meta.discourse.org/u/Bas)
#### Post date: [2025 年 2 月 24 日午後 7:15 UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043/3 "2025-02-24T19:15:19Z")

</div>

これらの「追加者」は `staff` のメンバーにのみ表示され、一般ユーザーには表示されないことを指摘しておきます。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025 年 2 月 24 日午後 7:38 UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043/4 "2025-02-24T19:38:09Z")

</div>

ありがとう、バスさん、良いポイントです！

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025 年 3 月 26 日午後 7:38 UTC](https://meta.discourse.org/t/how-to-disable-the-new-added-by-thats-added-into-the-staff-notices-feature/353043/5 "2025-03-26T19:38:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
