File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,11 @@ export const expandCrossbellNote = async ({
244244}
245245
246246export const expandCrossbellCharacter = async ( site : CharacterEntity ) => {
247+ if ( ! site . metadata && site . uri ) {
248+ site . metadata = {
249+ uri : site . uri ,
250+ }
251+ }
247252 if ( site . metadata ?. uri && ! site . metadata ?. content ) {
248253 site . metadata . content = await (
249254 await fetch ( toGateway ( site . metadata . uri ) )
@@ -258,6 +263,11 @@ export const expandCrossbellCharacter = async (site: CharacterEntity) => {
258263 } ,
259264 site ,
260265 )
266+ if ( ! expandedCharacter . metadata ) {
267+ expandedCharacter . metadata = {
268+ content : { } ,
269+ }
270+ }
261271 if ( ! expandedCharacter . metadata . content ) {
262272 expandedCharacter . metadata . content = { }
263273 }
You can’t perform that action at this time.
0 commit comments