where('url', $url)->first(); } public function getNotePreviewCard($noteId) { return $this->join( 'activitypub_notes_preview_cards', 'activitypub_notes_preview_cards.preview_card_id = id', 'inner', ) ->where( 'note_id', service('uuid') ->fromString($noteId) ->getBytes(), ) ->first(); } }