mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Macros - fix audio disabling not actually disabling audio
Summary: Fixes T5653. Test Plan: made a macro with sound and it played. changed it to not play and it did not play. changed it back and it played once more. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5653 Differential Revision: https://secure.phabricator.com/D10085
This commit is contained in:
parent
bf10b7602b
commit
8d520fbae3
1 changed files with 3 additions and 1 deletions
|
@ -124,7 +124,9 @@ final class PhabricatorRemarkupRuleImageMacro extends PhutilRemarkupRule {
|
|||
|
||||
$id = null;
|
||||
$audio = idx($files, $macro->getAudioPHID());
|
||||
if ($audio) {
|
||||
$should_play = ($audio && $macro->getAudioBehavior() !=
|
||||
PhabricatorFileImageMacro::AUDIO_BEHAVIOR_NONE);
|
||||
if ($should_play) {
|
||||
$id = celerity_generate_unique_node_id();
|
||||
|
||||
$loop = null;
|
||||
|
|
Loading…
Reference in a new issue