Skip to content

Commit

Permalink
artles, notes, and photos only syndicate to silos
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Merrill committed May 23, 2018
1 parent 88259b1 commit 2eec90d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ function create($request, $photos = []) {
$properties['posttype'] = post_type_discovery($properties);

# invoke any silo-specific functions for this post type.
list($properties, $content) = silo_post_type_function($properties['posttype'], $properties, $content);
# articles, notes, and photos interact with silos through syndication only.
# replies, reposts, likes, bookmarks, etc, may interact with silos here.
if (! in_array($type, ['article', 'note', 'photo'])) {
list($properties, $content) = silo_post_type_function($properties['posttype'], $properties, $content);
}

# all items need a date
if (!isset($properties['date'])) {
Expand Down

0 comments on commit 2eec90d

Please sign in to comment.