Skip to content

Commit

Permalink
Merge branch 'develop' into gutenberg/add/featured-functionality-to-i…
Browse files Browse the repository at this point in the history
…mage-block
  • Loading branch information
Siobhan committed Jul 1, 2021
2 parents e6fff4a + 15a51fb commit 1c973d5
Show file tree
Hide file tree
Showing 7 changed files with 1,064 additions and 2 deletions.
6 changes: 6 additions & 0 deletions MIGRATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
This file documents changes in the data model. Please explain any changes to the
data model as well as any custom migrations.

## WordPress 126

@scoutharris 2021-06-28

- `Comment`: added `canModerate` attribute. (required, default `false`, `Boolean`)

## WordPress 125

@aerych 2021-06-04
Expand Down
1 change: 1 addition & 0 deletions WordPress/Classes/Models/Comment.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ extern NSString * const CommentStatusDraft;
@property (nonatomic, strong) NSAttributedString *attributedContent;
@property (nonatomic) BOOL isLiked;
@property (nonatomic, assign) BOOL isNew;
@property (nonatomic) BOOL canModerate;

/// Helper methods
///
Expand Down
1 change: 1 addition & 0 deletions WordPress/Classes/Models/Comment.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ @implementation Comment
@dynamic type;
@dynamic isLiked;
@dynamic likeCount;
@dynamic canModerate;
@synthesize isNew;
@synthesize attributedContent;

Expand Down
2 changes: 2 additions & 0 deletions WordPress/Classes/Services/CommentService.m
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,7 @@ - (void)updateComment:(Comment *)comment withRemoteComment:(RemoteComment *)remo
comment.type = remoteComment.type;
comment.isLiked = remoteComment.isLiked;
comment.likeCount = remoteComment.likeCount;
comment.canModerate = remoteComment.canModerate;

// if the post for the comment is not set, check if that post is already stored and associate them
if (!comment.post) {
Expand All @@ -1174,6 +1175,7 @@ - (RemoteComment *)remoteCommentWithComment:(Comment *)comment
remoteComment.type = comment.type;
remoteComment.isLiked = comment.isLiked;
remoteComment.likeCount = comment.likeCount;
remoteComment.canModerate = comment.canModerate;
return remoteComment;
}

Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/WordPress.xcdatamodeld/.xccurrentversion
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>_XCCurrentVersionName</key>
<string>WordPress 125.xcdatamodel</string>
<string>WordPress 126.xcdatamodel</string>
</dict>
</plist>
1,050 changes: 1,050 additions & 0 deletions WordPress/Classes/WordPress.xcdatamodeld/WordPress 126.xcdatamodel/contents

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion WordPress/WordPress.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6145,6 +6145,7 @@
986C90872231AD6200FC31E1 /* PostStatsViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostStatsViewModel.swift; sourceTree = "<group>"; };
986CC4D120E1B2F6004F300E /* CustomLogFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomLogFormatter.swift; sourceTree = "<group>"; };
986DD19B218D002500D28061 /* WPStyleGuide+Stats.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WPStyleGuide+Stats.swift"; sourceTree = "<group>"; };
987044AD268A9A5300BD0571 /* WordPress 126.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "WordPress 126.xcdatamodel"; sourceTree = "<group>"; };
98712D1923DA1C7E00555316 /* WidgetNoConnectionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetNoConnectionCell.swift; sourceTree = "<group>"; };
98712D1A23DA1C7E00555316 /* WidgetNoConnectionCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WidgetNoConnectionCell.xib; sourceTree = "<group>"; };
9872CB2F203B8A730066A293 /* SignupEpilogueTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignupEpilogueTableViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -24618,6 +24619,7 @@
E125443B12BF5A7200D87A0A /* WordPress.xcdatamodeld */ = {
isa = XCVersionGroup;
children = (
987044AD268A9A5300BD0571 /* WordPress 126.xcdatamodel */,
E6EE8807266ABE9F009BC219 /* WordPress 125.xcdatamodel */,
984FB2B22646001E00878DE0 /* WordPress 124.xcdatamodel */,
9804E0B42639D88C00532095 /* WordPress 123.xcdatamodel */,
Expand Down Expand Up @@ -24744,7 +24746,7 @@
8350E15911D28B4A00A7B073 /* WordPress.xcdatamodel */,
E125443D12BF5A7200D87A0A /* WordPress 2.xcdatamodel */,
);
currentVersion = E6EE8807266ABE9F009BC219 /* WordPress 125.xcdatamodel */;
currentVersion = 987044AD268A9A5300BD0571 /* WordPress 126.xcdatamodel */;
name = WordPress.xcdatamodeld;
path = Classes/WordPress.xcdatamodeld;
sourceTree = "<group>";
Expand Down

0 comments on commit 1c973d5

Please sign in to comment.