Commit d57157b39f34790d26703746a8e99670a52ca85b
mutant resolve doesn't resolve each object property, so this code was just wrong before... @mixmix
Dominic Tarr committed on 12/8/2017, 6:58:02 AMParent: 26eb63b836af90470db4e83dd22d952a85c08061
Files changed
message/html/compose.js | changed |
message/html/compose.js | ||
---|---|---|
@@ -142,12 +142,14 @@ | ||
142 | 142 | } |
143 | 143 | return mention |
144 | 144 | }) |
145 | 145 | |
146 | - var content = assign({}, resolve(meta), { | |
146 | + var content = assign({}, meta, { | |
147 | 147 | text, |
148 | 148 | mentions |
149 | 149 | }) |
150 | + for(var k in content) | |
151 | + content[k] = resolve(content[k]) | |
150 | 152 | |
151 | 153 | if (!content.channel) delete content.channel |
152 | 154 | if (!mentions.length) delete content.mentions |
153 | 155 | if (content.recps && content.recps.length === 0) delete content.recps |
@@ -183,4 +185,6 @@ | ||
183 | 185 | |
184 | 186 | |
185 | 187 | |
186 | 188 | |
189 | + | |
190 | + |
Built with git-ssb-web