-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async notifications: Post error / success notifications (part II): #6763
Changes from all commits
8bead6e
b82858a
19a095f
940d60b
b119d6e
e3a30ad
88101b4
a09209f
99403fc
3a37bae
751b601
ab402f9
a296301
9b86d53
c6d5a41
a0f1db8
dcd4b7d
c61cfd0
cc48757
2c99ae0
c34561e
78a2e35
738fa31
198092e
5633411
bc7403c
309c3d6
b54baee
2f7bd00
66b372b
4b37119
8458cfa
e579fab
0ad299b
fcfa5c2
6aa5620
b2b49d6
158f6b8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -326,4 +326,9 @@ static boolean updatePostContentIfDifferent(PostModel post, String newContent) { | |
} | ||
return false; | ||
} | ||
|
||
public static boolean isFirstTimePublish(PostModel post) { | ||
return PostStatus.fromPost(post) == PostStatus.DRAFT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's correct - |
||
|| (PostStatus.fromPost(post) == PostStatus.PUBLISHED && post.isLocalDraft()); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can drop
final PostModel post = event.post;
at the top of this method.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in fcfa5c2