Pārlūkot izejas kodu

Update AP helpers, ingest attachments in replies

Daniel Supernault 2 gadi atpakaļ
vecāks
revīzija
c504e6437e
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      app/Util/ActivityPub/Helpers.php

+ 3 - 0
app/Util/ActivityPub/Helpers.php

@@ -496,6 +496,9 @@ class Helpers {
 		if($reply_to == null) {
 		if($reply_to == null) {
 			self::importNoteAttachment($activity, $status);
 			self::importNoteAttachment($activity, $status);
 		} else {
 		} else {
+			if(isset($activity['attachment']) && !empty($activity['attachment'])) {
+				self::importNoteAttachment($activity, $status);
+			}
 			StatusReplyPipeline::dispatch($status);
 			StatusReplyPipeline::dispatch($status);
 		}
 		}