浏览代码

Update AP helpers, ingest attachments in replies

Daniel Supernault 2 年之前
父节点
当前提交
c504e6437e
共有 1 个文件被更改,包括 3 次插入0 次删除
  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) {
 			self::importNoteAttachment($activity, $status);
 		} else {
+			if(isset($activity['attachment']) && !empty($activity['attachment'])) {
+				self::importNoteAttachment($activity, $status);
+			}
 			StatusReplyPipeline::dispatch($status);
 		}