Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/OpenSIST/OpenSIST.github.io
/ getPostObject
Function
getPostObject
src/Data/PostData.js:85–92 ·
view source on GitHub ↗
(postId)
Source
from the content-addressed store, hash-verified
83
}
84
85
export
async
function
getPostObject(postId) {
86
const
post =
await
getPost(postId);
87
if
(!post) {
88
throw
new
Error(
"Post not found"
);
89
}
90
91
return
post;
92
}
93
94
/**
95
* Toggle like on a post or a comment.
Callers
1
loader
Function · 0.90
Calls
1
getPost
Function · 0.85
Tested by
no test coverage detected