# 修复语音记录插件中的一个漏洞

**URL:** https://meta.discourse.org/t/fix-a-bug-in-a-voice-record-plugin/148905
**Category:** Development
**Created:** [2020年四月22日 20:20 UTC](https://meta.discourse.org/t/fix-a-bug-in-a-voice-record-plugin/148905 "2020-04-22T20:20:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ed\_Bobkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_bobkov/32/200014_2.png) [@Ed\_Bobkov](https://meta.discourse.org/u/Ed_Bobkov)
#### Post date: [2020年四月22日 20:20 UTC](https://meta.discourse.org/t/fix-a-bug-in-a-voice-record-plugin/148905/1 "2020-04-22T20:20:01Z")

</div>

我安装了此插件：[GitHub - synweap15/discourse-voice-record: Voice recording plugin for Discourse · GitHub](https://github.com/synweap15/discourse-voice-record)  
我使用的是最新版本的 Discourse。  
遇到的问题：没有显示麦克风图标，但预留位置存在，且所有功能均正常工作。

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

我检查了网站代码和该页面（该插件在此处工作正常：[https://forum.english.best/t/natalie-from-australia/144676），发现了以下差异：](https://forum.english.best/t/natalie-from-australia/144676%EF%BC%89%EF%BC%8C%E5%8F%91%E7%8E%B0%E4%BA%86%E4%BB%A5%E4%B8%8B%E5%B7%AE%E5%BC%82%EF%BC%9A)

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

我需要将图标放置到工具栏的最左侧位置：[Screenshot by Lightshot](https://prnt.sc/s486op)  
此外，如果您能为此插件添加一些功能，那就更好了。

工期为 4-5 天。  
预算将根据所有任务而定。我需要修复此问题，欢迎沟通。期待您的加入！

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2020年四月22日 21:25 UTC](https://meta.discourse.org/t/fix-a-bug-in-a-voice-record-plugin/148905/2 "2020-04-22T21:25:05Z")

</div>

也许我们的朋友 Pavilion 会对接手这个项目感兴趣。我也很希望这个插件能再次被接手并得到改进，我去年夏天就在那里发布过这个帖子。时间都去哪儿了？！

> **[Pavilion](https://pavilion.tech/)**
>
> Pavilion is the leading Discourse consultancy.

我目前的用例是为我的家人提供一个简单的方法，让他们录制自己朗读儿童书籍的音频，以便我住在巴黎公寓里隔离的侄子收听！🙂 目前我们使用 iPhone 录制并上传录音，然后这些录音可以内嵌播放。这种方式效果还不错，但多了一个步骤，而且需要一些技术操作，我的一些年长亲属对此感到有些吃力。

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [2020年四月23日 14:53 UTC](https://meta.discourse.org/t/fix-a-bug-in-a-voice-record-plugin/148905/3 "2020-04-23T14:53:18Z")

</div>

在插件中，图标是这样添加的：

> <https://github.com/synweap15/discourse-voice-record/blob/2ce924a1cde612f478cdadb14f8443a4177c1ba1/assets/javascripts/discourse/initializers/audio-upload.js.es6#L23>

尝试在以下位置操作：

`admin/site_settings/category/all_results?filter=svg`

添加一个类似 `fa-microphone` 的图标。出现了吗？

---

<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年四月23日 22:50 UTC](https://meta.discourse.org/t/fix-a-bug-in-a-voice-record-plugin/148905/4 "2020-04-23T22:50:05Z")

</div>

我已向仓库提交了一个拉取请求以修复该问题（不收取任何费用）。

我们将探讨长期维护方案，或许可以通过 Pavilion 实现。

[https://github.com/synweap15/discourse-voice-record/pull/4](https://github.com/synweap15/discourse-voice-record/pull/4)

编辑：拉取请求已合并。

---

<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: [2020年五月24日 11:16 UTC](https://meta.discourse.org/t/fix-a-bug-in-a-voice-record-plugin/148905/7 "2020-05-24T11:16:17Z")

</div>

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