+2
-2
lib/bskyToucher.php
+2
-2
lib/bskyToucher.php
···'embeds' => property_exists($post->value, 'embed') ? $this->sanitizeEmbeds($post->value->embed, $authorInfo) : [],-\updatePostCache($rkey, $did, $ret->content, $ret->embedType, json_encode($ret->embeds), $post->value->createdAt);+\updatePostCache($rkey, $did, $ret->content, $ret->embedType ? $ret->embedType : '', json_encode($ret->embeds), $post->value->createdAt);···$facets = property_exists($post->record, 'facets') ? $this->sanitizeFacets($post->record->facets) : [];-$embedType = property_exists($post->record, 'embed') ? $post->record->embed->{'$type'} : null;$embeds = property_exists($post->record, 'embed') ? $this->sanitizeEmbeds($post->record->embed, $authorData) : [];
+1
-1
lib/maria-db.php
+1
-1
lib/maria-db.php
···-function updatePostCache(string $rkey, string $did, string $text, ?string $embedType, ?string $embedData, string $createdAt): void {+function updatePostCache(string $rkey, string $did, string $text, string $embedType, string $embedData, string $createdAt): void {