mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	Fix replies count when replying to an inbox object
This commit is contained in:
		| @@ -321,6 +321,14 @@ async def send_create( | ||||
|                 ) | ||||
|                 .values(replies_count=models.OutboxObject.replies_count + 1) | ||||
|             ) | ||||
|         elif in_reply_to_object.is_from_inbox: | ||||
|             await db_session.execute( | ||||
|                 update(models.InboxObject) | ||||
|                 .where( | ||||
|                     models.InboxObject.ap_id == in_reply_to, | ||||
|                 ) | ||||
|                 .values(replies_count=models.InboxObject.replies_count + 1) | ||||
|             ) | ||||
|  | ||||
|     for (upload, filename, alt_text) in uploads: | ||||
|         attachments.append(upload_to_attachment(upload, filename, alt_text)) | ||||
|   | ||||
| @@ -83,7 +83,6 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac | ||||
| # - allow to block servers | ||||
| # - FT5 text search | ||||
| # - support update post with history? | ||||
| # - block support | ||||
| # - cleanup tasks | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user