Fix following.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3763 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
019ab99ecc
commit
b8068b9ed1
@ -1 +1 @@
|
||||
{"type":"tildefriends-app","files":{"app.js":"&GCb69GeodErTY6TJSmFwUomO1nBC8UIdkgJPbeA8tXs=.sha256","index.html":"&/CE4CuVKI56h5tfAHF0kzCXbLfhVjWzsM8aZAB9HpEM=.sha256","vue-material.js":"&K5cdLqXYCENPak/TCINHQhyJhpS4G9DlZHGwoh/LF2g=.sha256","tf-user.js":"&DdJwZYEo7AqFyutYMvEjykoVXxdHVog0UXye6Sbo0TU=.sha256","tf-message.js":"&ZQuSBy1K3iASz/NVEa8ILA6aOefHZUmBa/Ddpcl7ZyI=.sha256","tf.js":"&0qrX+5OCWdXUJif4NY7Bc03k7gj/zAIbVqLovhv+akk=.sha256","commonmark.min.js":"&5x6ek3tFrKTZX6hXNNyFsjmhvrjmWpUkwuuaiyVV1Us=.sha256","vue.js":"&g1wvA+yHl1sVC+eufTsg9If7ZeVyMTBU+h0tks7ZNzE=.sha256","vue-material-theme-default-dark.css":"&RP2nr+2CR18BpHHw5ST9a5GJUCOG9n0G2kuGkcQioWE=.sha256","vue-material.min.css":"&kGbUM2QgFSyHZRzqQb0b+0S3EVIlZ0AXpdiAVjIhou8=.sha256","roboto.css":"&jJv43Om673mQO5JK0jj7714s5E+5Yrf82H6LcDx7wUs=.sha256","material-icons.css":"&a28PdcVvgq/DxyIvJAx/e+ZOEtOuHnr3kjLWKyzH11M=.sha256"}}
|
||||
{"type":"tildefriends-app","files":{"app.js":"&uXK7Jr1DcwfxabWjUOHVsElPbSyBB35bSrNSElnUlik=.sha256","index.html":"&/CE4CuVKI56h5tfAHF0kzCXbLfhVjWzsM8aZAB9HpEM=.sha256","vue-material.js":"&K5cdLqXYCENPak/TCINHQhyJhpS4G9DlZHGwoh/LF2g=.sha256","tf-user.js":"&DdJwZYEo7AqFyutYMvEjykoVXxdHVog0UXye6Sbo0TU=.sha256","tf-message.js":"&ZQuSBy1K3iASz/NVEa8ILA6aOefHZUmBa/Ddpcl7ZyI=.sha256","tf.js":"&0qrX+5OCWdXUJif4NY7Bc03k7gj/zAIbVqLovhv+akk=.sha256","commonmark.min.js":"&5x6ek3tFrKTZX6hXNNyFsjmhvrjmWpUkwuuaiyVV1Us=.sha256","vue.js":"&g1wvA+yHl1sVC+eufTsg9If7ZeVyMTBU+h0tks7ZNzE=.sha256","vue-material-theme-default-dark.css":"&RP2nr+2CR18BpHHw5ST9a5GJUCOG9n0G2kuGkcQioWE=.sha256","vue-material.min.css":"&kGbUM2QgFSyHZRzqQb0b+0S3EVIlZ0AXpdiAVjIhou8=.sha256","roboto.css":"&jJv43Om673mQO5JK0jj7714s5E+5Yrf82H6LcDx7wUs=.sha256","material-icons.css":"&a28PdcVvgq/DxyIvJAx/e+ZOEtOuHnr3kjLWKyzH11M=.sha256"}}
|
@ -374,15 +374,17 @@ ssb.addEventListener('message', async function(id) {
|
||||
});
|
||||
|
||||
async function addAppSources(message) {
|
||||
for (let mention of message.mentions) {
|
||||
if (mention.type == 'application/tildefriends') {
|
||||
var blob = await ssb.blobGet(mention.link);
|
||||
var json = JSON.parse(utf8Decode(blob));
|
||||
for (let file of Object.keys(json.files)) {
|
||||
message.mentions.push({
|
||||
name: file,
|
||||
link: json.files[file],
|
||||
});
|
||||
if (message.mentions) {
|
||||
for (let mention of message.mentions) {
|
||||
if (mention.type == 'application/tildefriends') {
|
||||
var blob = await ssb.blobGet(mention.link);
|
||||
var json = JSON.parse(utf8Decode(blob));
|
||||
for (let file of Object.keys(json.files)) {
|
||||
message.mentions.push({
|
||||
name: file,
|
||||
link: json.files[file],
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user