-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Translate AbstractPost to Swift #25040
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
Merged
+97
−197
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
330e8d1
Move AbstractPost.isScheduled to Swift
crazytonyli f52edc9
Move AbstractPost.isDraft to Swift
crazytonyli 9ac6b97
Move AbstractPost.isPublished to Swift
crazytonyli 1bc7975
Move AbstractPost.originalIsDraft to Swift
crazytonyli 9ef8896
Move AbstractPost.shouldPublishImmediately to Swift
crazytonyli a21936d
Move AbstractPost.hasPhoto and hasVideo to Swift
crazytonyli 768909f
Move AbstractPost.hasRemote to Swift
crazytonyli cc1f476
Remove unused function AbstractPost.blogURL
crazytonyli 2c07371
Remove AbstractPost.isPrivateAtWPCom
crazytonyli 18c339d
Move AbstractPost.parsedOtherTerms to Swift
crazytonyli 2ffffa6
Move AbstractPost.updatePathForDisplayImageBasedOnContent to Swift
crazytonyli 086eca5
Remove unused function `AbstractPost.save`
crazytonyli 31ff198
Move a couple of methods into a private extension
crazytonyli 0560fac
Remove unneeded `@objc` declarations
crazytonyli 8f80ed0
Remove a few helpers
crazytonyli 83c8cc0
Merge branch 'trunk' into core-data-models-posts-helpers
crazytonyli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,7 +139,7 @@ class EditorMediaUtility { | |
| let requestURL: URL | ||
| if url.isFileURL { | ||
| requestURL = url | ||
| } else if post.isPrivateAtWPCom() && url.isHostedAtWPCom { | ||
| } else if post.blog.isPrivateAtWPCom() && url.isHostedAtWPCom { | ||
|
Contributor
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. Nice, I like the removal of these excessive convenience methods that proxy to blog. |
||
| // private wpcom image needs special handling. | ||
| // the size that WPImageHelper expects is pixel size | ||
| size.width = size.width * scale | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
shouldPublishImmediatelyand some of the other methods are not used from Objective-C.