diff --git a/migrations/profileImageFormat.js b/migrations/profileImageFormat.js new file mode 100644 index 0000000..463a9b3 --- /dev/null +++ b/migrations/profileImageFormat.js @@ -0,0 +1,11 @@ +db.objects.find({type: "Group"}).forEach(function(d) { + if(typeof d.icon !== 'string') { + return; + } + d.icon = { + type: 'Image', + mediaType: 'image/jpeg', + url: d.icon + }; + db.objects.save(d); +}); diff --git a/pub/actor.js b/pub/actor.js index 5e20b76..7a7e8fe 100644 --- a/pub/actor.js +++ b/pub/actor.js @@ -39,7 +39,11 @@ function createLocalActor (name, type) { preferredUsername: name, name: `${name} group`, summary: `I'm a group about ${name}. Follow me to get all the group posts. Tag me to share with the group. Create other groups by searching for or tagging @yourGroupName@${config.DOMAIN}`, - icon: `https://${config.DOMAIN}/f/guppe.png`, + icon: { + type: 'Image', + mediaType: 'image/jpeg', + url: `https://${config.DOMAIN}/f/guppe.png` + }, publicKey: { id: `${actorBase}#main-key`, owner: `${actorBase}`, diff --git a/public/files/guppe.png b/public/files/guppe.png index c7ac38d..1e51cf5 100644 Binary files a/public/files/guppe.png and b/public/files/guppe.png differ