Fix ActivityPub followers/specified detection
This commit is contained in:
		
							parent
							
								
									765b922a8b
								
							
						
					
					
						commit
						c5073b33ef
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -69,12 +69,13 @@ export async function createNote(value: any, resolver?: Resolver, silent = false | ||||||
| 	if (!note.to.includes('https://www.w3.org/ns/activitystreams#Public')) { | 	if (!note.to.includes('https://www.w3.org/ns/activitystreams#Public')) { | ||||||
| 		if (note.cc.includes('https://www.w3.org/ns/activitystreams#Public')) { | 		if (note.cc.includes('https://www.w3.org/ns/activitystreams#Public')) { | ||||||
| 			visibility = 'home'; | 			visibility = 'home'; | ||||||
|  | 		} else if (note.to.includes(`${actor.uri}/followers`)) {	// TODO: person.followerと照合するべき?
 | ||||||
|  | 			visibility = 'followers'; | ||||||
| 		} else { | 		} else { | ||||||
| 			visibility = 'specified'; | 			visibility = 'specified'; | ||||||
| 			visibleUsers = await Promise.all(note.to.map(uri => resolvePerson(uri))); | 			visibleUsers = await Promise.all(note.to.map(uri => resolvePerson(uri))); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	if (note.cc.length == 0) visibility = 'followers'; |  | ||||||
| 	//#endergion
 | 	//#endergion
 | ||||||
| 
 | 
 | ||||||
| 	// 添付メディア
 | 	// 添付メディア
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue