# Babble Chat

**URL:** https://meta.discourse.org/t/babble-chat/87297
**Category:** Plugin
**Tags:** broken
**Created:** [2018 年 5 月 11 日午後 10:08 UTC](https://meta.discourse.org/t/babble-chat/87297 "2018-05-11T22:08:04Z")
**Posts on this page:** 20
**Page:** 18

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [2020 年 8 月 10 日午後 10:08 UTC](https://meta.discourse.org/t/babble-chat/87297/355 "2020-08-10T22:08:22Z")

</div>

@gdpelican さんからの返信が1週間以上ないため、修正を作成してプルリクエストを提出しました。本リポジトリに修正が取り込まれるまで、代替リポジトリをご利用ください。  
代替リポジトリ: [https://github.com/PuttyTribe/babble](https://github.com/PuttyTribe/babble)  
プルリクエスト: [Fix issue with search controller by ti0 · Pull Request #302 · gdpelican/babble · GitHub](https://github.com/gdpelican/babble/pull/302)

切り替えるには、設定を変更して既存の babble リポジトリを [https://github.com/PuttyTribe/babble.git](https://github.com/PuttyTribe/babble.git) に置き換え、再ビルドしてください。

@Newuser @itsbhanusharma @Boost @4ong

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2020 年 8 月 10 日午後 10:26 UTC](https://meta.discourse.org/t/babble-chat/87297/356 "2020-08-10T22:26:58Z")

</div>

あはは、どうやら「ビューティ・パレード」のようですね 😉

> <https://github.com/gdpelican/babble/pull/303>
>
> Update overridden method to include new param

このエラーは、コアの以下の変更が原因です：

> <https://github.com/discourse/discourse/commit/3b08b158553134506e71cbe741570ccea22db6fd#diff-d1651f3391b9271699ed9e4d0756712c>

@angus 判断はあなたにお任せします 😉

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [2020 年 8 月 10 日午後 10:37 UTC](https://meta.discourse.org/t/babble-chat/87297/357 "2020-08-10T22:37:29Z")

</div>

おっ、タイミングいいね！🙂 1週間活動なしだったのに、20分違いで2つの解決策が！  
最初はあの解決策を選んだんだけど、パラメータがどの場合も使われていないので、とりあえず包括的な対応にすることにしたんだ。

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2020 年 8 月 11 日午前 6:51 UTC](https://meta.discourse.org/t/babble-chat/87297/358 "2020-08-11T06:51:40Z")

</div>

@merefield の PR をマージしました。これでこの問題は解決します。

@ti0 PR をありがとうございます。引数は実際に使われています 🙂 `super()` の代わりに引数なしで `super` を呼び出すと、サブクラスの引数が自動的に `super` に渡されます。オーバーライドされているメソッドを見ていただければ、引数がどこで使われているかがわかります: [discourse/lib/search.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/lib/search.rb#L232%E3%80%82)

@ti0 @merefield 余談ですが、Discourse コアに PR を出して、プラグインから `Search` クラスに新しい `type_filters` を追加するためのフックを追加すべきです。`execute` メソッドをパッチするよりも、パフォーマンスや安定性が高くなるでしょう。Discourse チームがその価値があると感じてくれれば、面白い小規模なプロジェクトになるかもしれません。

> [@justin](#):
>
> ローカル開発環境を起動しようとしたときにこのエラーが発生します。何か解決策はありますか？
> 
> ```plaintext
> ~/.rbenv/versions/2.5.2/lib/ruby/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:672:in `find_root_with_flag': Could not find root path for Babble::Engine (RuntimeError)
> 
> ```

@justin 結局、この問題は解決しましたか？私は自分のブランチで Babble がエンジンを読み込む方法を少し変えるまで、同じ問題に直面していました。おそらく、異なる環境が @gdpelican のイニシャライザでのファイル読み込み方法（つまり、以下のような方法）をどのように扱っているかに関係していると思われます。

```plaintext
require Rails.root.join('plugins', 'babble', 'app', path).to_s

```

正確に特定するのは難しいですが、Babble のファイル読み込み方法を更新する PR を作成し、@gdpelican が `require` と `Rails.root` の代わりに `load` と `File.expand_path` を使用する標準的な Discourse プラグイン方式に変更することに賛成してくれるか確認してみようと思います。

* * *

**追記** Babble を [try.thepavilion.io](http://try.thepavilion.io) に追加しましたので、24 時間ごとに更新される環境でテストできます。

将来的に、Babble に致命的なバグ（完全に動作しないなど）が発生し、James が利用できない場合は、@angus または @merefield にメンションしてください。私たちが修正するか、PR をレビューします（:））。

---

<div class="post-metadata">

### Author: ![ti0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ti0/32/184402_2.png) [@ti0](https://meta.discourse.org/u/ti0)
#### Post date: [2020 年 8 月 11 日午後 3:42 UTC](https://meta.discourse.org/t/babble-chat/87297/359 "2020-08-11T15:42:49Z")

</div>

> [@angus](#):
>
> その引数は実際には使われています 🙂 引数なしで `super` を呼び出す場合（つまり `super()` の代わりに）、サブクラスの引数が自動的に `super` に渡されます。オーバーライドされているメソッドを見てみると、その引数がどこで使われているかがわかります。

私が言いたかったのは、変更したオーバーライドされたメソッド内でそのパラメータが使われていないということです。あなたの言う通りなら、私のコードは依然として機能するはずです。なぜなら、`super` の呼び出しは `**args`（名前付き引数を収集するもの）を単に渡すだけであり、将来他のパラメータが追加されてもより安定するからです。これは理にかなっていますか？それとも何か見落としているのでしょうか？

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2020 年 8 月 12 日午前 12:14 UTC](https://meta.discourse.org/t/babble-chat/87297/360 "2020-08-12T00:14:28Z")

</div>

はい、その通りですね 🙂

少しテストしてみましたが、あなたの方法も即座の目的には問題なく機能するようです（つまり、`readonly_mode` の機能を維持しています）。ただ、概念的には少し奇妙に思えます。` **args` は理論的にはスーパークラスを呼び出す前に設定されるべきだからです。個人的には（ジェームズが異なる見解を持つ可能性はありますが）、より明示的な方法を好みます。`super` を呼び出すだけで既に引数を暗黙的に渡している状況で、`** args` を追加してさらに暗黙性を増すのは、少し複雑になりすぎているように感じます。

あなたの意図は理解できますが、総合的に判断すると、こうした状況ではコアコードとの競合を避けるための明示的な方法を探る方が、包括的な暗黙的なメソッドを使うよりも良い対策だと考えます。後者の方針は、将来的に他の問題を引き起こす傾向があります。前述の通り、コアコードベースに新しい `type_filter` を追加することでリファクタリングできればと願っています。それは良いプロジェクトになると思います。

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [2020 年 8 月 23 日午後 6:46 UTC](https://meta.discourse.org/t/babble-chat/87297/361 "2020-08-23T18:46:25Z")

</div>

> [@gdpelican](#):
>
> ページ読み込み時にチャットを自動的に開く

すべてのユーザーに対して、デフォルトで「ページ読み込み時にチャットを自動的に開く」を「はい」に設定することは可能ですか？

---

<div class="post-metadata">

### Author: ![rossmith49](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rossmith49/32/191535_2.png) [@rossmith49](https://meta.discourse.org/u/rossmith49)
#### Post date: [2020 年 8 月 26 日午後 2:55 UTC](https://meta.discourse.org/t/babble-chat/87297/362 "2020-08-26T14:55:28Z")

</div>

Babbleで、ThreadsのようにURLをレンダリングすることは可能でしょうか？

例えば、Babble ChatにTwitterのリンクを投稿した際に、単にURLが表示されるのではなく、ツイートの内容が表示されるような感じです。

---

<div class="post-metadata">

### Author: ![rossmith49](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rossmith49/32/191535_2.png) [@rossmith49](https://meta.discourse.org/u/rossmith49)
#### Post date: [2020 年 9 月 1 日午後 1:20 UTC](https://meta.discourse.org/t/babble-chat/87297/363 "2020-09-01T13:20:29Z")

</div>

Memberful と統合した後、チャットでアカウント名の下にユーザーの実名が表示されてしまった方はいらっしゃいますか？

可能であれば、実名が表示されないようにしたいと考えています。

編集：一時的な対策として、サインアップ時にスクリーン名をフルネームとして使用するか、オンボーディング後に手動でフルネームをスクリーン名に一致させています。

---

<div class="post-metadata">

### Author: ![eric.kim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eric.kim/32/179081_2.png) [@eric.kim](https://meta.discourse.org/u/eric.kim)
#### Post date: [2020 年 9 月 17 日午後 5:21 UTC](https://meta.discourse.org/t/babble-chat/87297/365 "2020-09-17T17:21:37Z")

</div>

2020 年 9 月 17 日現在、これを使っている人はいますか？

単なるサイドプロジェクトではないか確認したかっただけです。

---

<div class="post-metadata">

### Author: ![JoelZaslofsky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joelzaslofsky/32/158556_2.png) [@JoelZaslofsky](https://meta.discourse.org/u/JoelZaslofsky)
#### Post date: [2020 年 9 月 17 日午後 7:58 UTC](https://meta.discourse.org/t/babble-chat/87297/366 "2020-09-17T19:58:58Z")

</div>

@angus、現時点ではあなたが最も利用可能な Babble ヘルパーかもしれません。そのため、コード更新のリクエストをあなたに送りますが、誰が対応しても構いません。

先ほど Discourse のバージョンを 2.6.0beta2 に更新しました（具体的には [この GitHub コミットバージョン](https://github.com/discourse/discourse/commits/e02da64091591f95475d964be3c3a4d7eab7c0d0)）。その結果、絵文字ピッカーが機能しなくなっています。

@itsbhanusharma は Discourse のインストールを担当しており、彼の最初の考えは、Discourse コア内の絵文字ピッカーの更新との互換性問題であるというものです。

## 絵文字ピッカーの問題

**環境:**

ブラウザ: Firefox または Chrome（最新ビルド）  
ビュー: デスクトップ、タブレット、モバイル  
問題の再現率: 100%

**再現手順:**

- Babble チャットウィンドウを開く
- 絵文字ピッカーアイコンをクリックまたは押す

**期待される結果:**

絵文字ピッカー UI が開く

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/5/a5e0cad339c2df17cf6233dea23d45807fac0e97.png)

**実際の結果:**

何も起こらない。絵文字ピッカーウィンドウが開かない。

* * *

複雑にしない範囲で、絵文字ピッカーの問題を修正した方は、不足している翻訳も修正していただけると幸いです。

チャットメッセージの横にある「…」アイコンをクリックすると、「Flag」オプションが「Flag」ではなく「[en\_US.post.actions.flag]」として表示されます。

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/3/035135f5f23dc96588f624443e372b3ce8b457c9.png)

---

<div class="post-metadata">

### Author: ![rossmith49](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rossmith49/32/191535_2.png) [@rossmith49](https://meta.discourse.org/u/rossmith49)
#### Post date: [2020 年 9 月 23 日午前 2:32 UTC](https://meta.discourse.org/t/babble-chat/87297/367 "2020-09-23T02:32:51Z")

</div>

Babble の絵文字ピッカーも、私のサイトでは正常に機能しなくなりました。

---

<div class="post-metadata">

### Author: ![rossmith49](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rossmith49/32/191535_2.png) [@rossmith49](https://meta.discourse.org/u/rossmith49)
#### Post date: [2020 年 9 月 24 日午前 11:43 UTC](https://meta.discourse.org/t/babble-chat/87297/368 "2020-09-24T11:43:41Z")

</div>

また、チャットがランダムに上にスクロールしてしまいます。以前も同様の問題があったと思います。

---

<div class="post-metadata">

### Author: ![JoelZaslofsky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joelzaslofsky/32/158556_2.png) [@JoelZaslofsky](https://meta.discourse.org/u/JoelZaslofsky)
#### Post date: [2020 年 10 月 9 日午後 8:44 UTC](https://meta.discourse.org/t/babble-chat/87297/369 "2020-10-09T20:44:17Z")

</div>

@angus さん、あるいは現在 Babble の技術サポートをお手伝いいただける方 – 3 週間前にこのフォーラムの返信で報告した 2 つの問題を修正できる見込みはありますか？

> [@Babble Chat](https://meta.discourse.org/t/babble-a-chat-plugin/87297/366):
>
> @angus, you may be the most available Babble helper at this point. So I’m pinging you with a code update request, although I’d be happy for anyone to address this. I just update our Discourse version to 2.6.0beta2 (specifically [this GitHub commit version](https://github.com/discourse/discourse/commits/e02da64091591f95475d964be3c3a4d7eab7c0d0)) and the emoji picker is broken now. @itsbhanusharma helps with our Discourse install and his initial thought is a compatibility issue with the emoji picker update in Discourse core. Emoji Picker Issue Environment: Browser: Firefox or Chrome…

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [2020 年 10 月 10 日午前 1:42 UTC](https://meta.discourse.org/t/babble-chat/87297/370 "2020-10-10T01:42:44Z")

</div>

迅速な対応ありがとうございます、Joel さん。

> [@JoelZaslofsky](#):
>
> Discourse のバージョンを 2.6.0beta2 に更新しました（具体的には [この GitHub コミットバージョン](https://github.com/discourse/discourse/commits/e02da64091591f95475d964be3c3a4d7eab7c0d0)）。すると、絵文字ピッカーが機能しなくなりました。

新しい Discourse の絵文字ピッカーへの対応を追加しました。

> <https://github.com/gdpelican/babble/commit/08431c144448d7fb97583d28e298e8528a51d9a8>

> [@JoelZaslofsky](#):
>
> チャットメッセージの横にある「…」アイコンをクリックすると、「Flag」オプションが「Flag」ではなく「[en\_US.post.actions.flag]」として表示されます。

こちらも対応しました。

> <https://github.com/gdpelican/babble/commit/2219bd455bdbbc30e322bf70e970736608b2077a>

---

<div class="post-metadata">

### Author: ![chrispanag](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrispanag/32/105853_2.png) [@chrispanag](https://meta.discourse.org/u/chrispanag)
#### Post date: [2020 年 10 月 12 日午前 7:38 UTC](https://meta.discourse.org/t/babble-chat/87297/371 "2020-10-12T07:38:31Z")

</div>

こんにちは、@angus さん。このプラグインの素晴らしいご尽力に感謝します！

私の Discourse システムは **カスタムのロングポーリングベースURL** で動作しています。Babble を追加したところ、 **Access-Control ヘッダー（CORS）が追加されていない** ことがわかり、いくつかのリクエストが失敗しています。

もしコードのどの部分を確認すればよいか教えていただければ、修正を作成できるかもしれません。🙂

---

<div class="post-metadata">

### Author: ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://meta.discourse.org/u/Boost)
#### Post date: [2020 年 10 月 13 日午後 12:29 UTC](https://meta.discourse.org/t/babble-chat/87297/372 "2020-10-13T12:29:44Z")

</div>

Discourse の最新アップデートと Babble の最新バージョンをインストールした後（数日前、そして修正されたか確認するために昨日も再度インストールしました）、メッセージの送信に問題が発生しており、既読インジケーターが「新しいメッセージあり」の表示で停止したままです。

今さっき、メッセージを送信できない状態で、ブラウザのコンソールに以下のようなエラーが多数表示されました：

```plaintext
Uncaught Error: No Reason Phrase
    jQuery 13
    error _application-49dab3118e527975ea48703627a0152cbe26663b7fde8423c667b094d716ae08.js:8967
    jQuery 4
_ember_jquery-865569b174cc91f4563f3552f437b32c6eadf9f6c3d49eae02cfe50e5a8c7dfa.js:38573:14
    jQuery 13
    u self-hosted:1177
    error _application-49dab3118e527975ea48703627a0152cbe26663b7fde8423c667b094d716ae08.js:8967
    jQuery 4

```

---

<div class="post-metadata">

### Author: ![Dev\_Work](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dev_work/32/124200_2.png) [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)
#### Post date: [2020 年 10 月 14 日午前 6:34 UTC](https://meta.discourse.org/t/babble-chat/87297/373 "2020-10-14T06:34:38Z")

</div>

フォーラムアカウントのリストに、奇妙なユーザー名（“f5c…” で始まるもの、例：f5cfe2e6cc098d）を持つアカウントが検出されました - [This is the problem of a specific user or something else?](https://meta.discourse.org/t/this-is-the-problem-of-a-specific-user-or-something-else/167092)

あなたのプラグインは、以前にこのような問題を経験したことはありますか？

[https://site.example.com/u?name=f5c](https://site.example.com/u?name=f5c)

 ![IMG_20201014_063058_033~2](https://global.discourse-cdn.com/meta/original/3X/2/0/201ec7e2747b3a56bc5e3be1dc5f6f67dc206b90.jpeg) ![IMG_20201014_064112_175~2](https://global.discourse-cdn.com/meta/original/3X/c/4/c4c227cbc509bac1b57e2f7109b10c012cf412c3.jpeg)

---

<div class="post-metadata">

### Author: ![Dev\_Work](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dev_work/32/124200_2.png) [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)
#### Post date: [2020 年 10 月 14 日午前 7:42 UTC](https://meta.discourse.org/t/babble-chat/87297/374 "2020-10-14T07:42:22Z")

</div>

理由は何でしょうか（この時点までテストサイトにはチャンネルが存在しませんでした）？

 ![2020-10-14_103829](https://global.discourse-cdn.com/meta/original/3X/8/0/80c6fe347287c4dfb8f6625ead2c6dbca81d6dd6.png)

[  
Babble](https://github.com/gdpelican/babble.git) 6db4042

 ![2020-10-14_104120](https://global.discourse-cdn.com/meta/original/3X/4/c/4ccca2b9ab2ca0176bd2916aa06aa6c5d63d6600.png)

---

<div class="post-metadata">

### Author: ![Dev\_Work](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dev_work/32/124200_2.png) [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)
#### Post date: [2020 年 10 月 14 日午前 9:04 UTC](https://meta.discourse.org/t/babble-chat/87297/375 "2020-10-14T09:04:53Z")

</div>

（babble\_initial\_user\_count）を修正してください

パス `admin/site_settings/category/plugins?filter=plugin%3Ababble`

 ![2020-10-14_120136](https://global.discourse-cdn.com/meta/original/3X/5/0/50d37a8965bf0dc79b8f8cdcaeb7475137167b7e.png)

[Previous page](https://meta.discourse.org/t/babble-chat/87297.md?page=17)

[Next page](https://meta.discourse.org/t/babble-chat/87297.md?page=19)
