File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -201,13 +201,19 @@ bodies <- {
201
201
filter(! is.na(content.CustomContentEntityObject )) %> %
202
202
filter(type != " CustomContentEntityObject" ) %> %
203
203
nrow == 0 )
204
+ bodies
205
+ }
206
+
207
+ pages <- {
208
+ page_bodies <- bodies %> % filter(! is.na(content.Page ))
204
209
# # Page-like bodies should have a match in page_versions:
205
- stopifnot(bodies %> %
206
- filter(! is.na(content.Page )) %> %
207
- anti_join(page_versions ,
208
- by = join_by(content.Page == content_id )) %> %
210
+ by <- join_by(content.Page == content_id )
211
+ stopifnot(page_bodies %> %
212
+ anti_join(page_versions , by = by ) %> %
209
213
nrow == 0 )
210
- bodies
214
+ page_bodies %> %
215
+ left_join(page_versions , by = by ) %> %
216
+ select(- starts_with(" content." ), - type )
211
217
}
212
218
213
219
user2content <- {
You can’t perform that action at this time.
0 commit comments