mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Working for permalink
This commit is contained in:
@@ -16,6 +16,22 @@ export default {
|
||||
return prev;
|
||||
}
|
||||
|
||||
// Permalink view will retrieve only one comment.
|
||||
if (prev.asset.comment) {
|
||||
const updated = update(prev, {
|
||||
asset: {
|
||||
comment: {
|
||||
status: {
|
||||
$set: status
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return updated;
|
||||
}
|
||||
|
||||
// Stream View
|
||||
const updated = update(prev, {
|
||||
asset: {
|
||||
comments: {
|
||||
|
||||
Reference in New Issue
Block a user