mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 16:04:29 +01:00
debug: add logging to track author pubkey and profile resolution
This commit is contained in:
@@ -21,6 +21,14 @@ export const HighlightCitation: React.FC<HighlightCitationProps> = ({
|
||||
const [articleTitle, setArticleTitle] = useState<string>()
|
||||
const authorProfile = useEventModel(Models.ProfileModel, authorPubkey ? [authorPubkey] : null)
|
||||
|
||||
// Debug: log the authorPubkey and profile
|
||||
useEffect(() => {
|
||||
if (authorPubkey) {
|
||||
console.log('📝 HighlightCitation - authorPubkey:', authorPubkey)
|
||||
console.log('📝 HighlightCitation - authorProfile:', authorProfile)
|
||||
}
|
||||
}, [authorPubkey, authorProfile])
|
||||
|
||||
useEffect(() => {
|
||||
if (!eventReference || !relayPool) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user