mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-26 16:46:12 +01:00 
			
		
		
		
	feat: send the whole post content in summary as well
				
					
				
			This commit is contained in:
		| @@ -707,6 +707,7 @@ Mocks.notes.public = async (post) => { | |||||||
|  |  | ||||||
| 	attachment = normalizeAttachment(attachment); | 	attachment = normalizeAttachment(attachment); | ||||||
| 	let preview; | 	let preview; | ||||||
|  | 	let summary = null; | ||||||
| 	if (isMainPost) { | 	if (isMainPost) { | ||||||
| 		preview = { | 		preview = { | ||||||
| 			type: 'Note', | 			type: 'Note', | ||||||
| @@ -715,6 +716,8 @@ Mocks.notes.public = async (post) => { | |||||||
| 			published, | 			published, | ||||||
| 			attachment: normalizeAttachment(noteAttachment), | 			attachment: normalizeAttachment(noteAttachment), | ||||||
| 		}; | 		}; | ||||||
|  |  | ||||||
|  | 		summary = post.content; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	let context = await posts.getPostField(post.pid, 'context'); | 	let context = await posts.getPostField(post.pid, 'context'); | ||||||
| @@ -747,7 +750,7 @@ Mocks.notes.public = async (post) => { | |||||||
| 		attributedTo: `${nconf.get('url')}/uid/${post.user.uid}`, | 		attributedTo: `${nconf.get('url')}/uid/${post.user.uid}`, | ||||||
| 		context, | 		context, | ||||||
| 		audience, | 		audience, | ||||||
| 		summary: null, | 		summary, | ||||||
| 		name, | 		name, | ||||||
| 		preview, | 		preview, | ||||||
| 		content: post.content, | 		content: post.content, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user