mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/905 Closes #799 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
		
						commit
						25da35eab2
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -363,10 +363,12 @@ export class ApInboxService {
 | 
			
		|||
			this.logger.info(`Creating the (Re)Note: ${uri}`);
 | 
			
		||||
 | 
			
		||||
			const activityAudience = await this.apAudienceService.parseAudience(actor, activity.to, activity.cc, resolver);
 | 
			
		||||
			const createdAt = activity.published ? new Date(activity.published) : null;
 | 
			
		||||
			let createdAt = activity.published ? new Date(activity.published) : null;
 | 
			
		||||
 | 
			
		||||
			if (createdAt && createdAt < this.idService.parse(renote.id).date) {
 | 
			
		||||
				return 'skip: malformed createdAt';
 | 
			
		||||
			const renoteDate = this.idService.parse(renote.id).date;
 | 
			
		||||
			if (createdAt && createdAt < renoteDate) {
 | 
			
		||||
				this.logger.warn(`Correcting invalid publish time for Announce "${uri}"`);
 | 
			
		||||
				createdAt = renoteDate;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			await this.noteCreateService.create(actor, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue