message: Show a max of 4 ads in activity feeds.
diff: @@ -78,18 +78,24 @@ export class AppActivityFeed extends Vue {
  }
  shouldShowAd(index: number) {
  - if (!this.shouldShowAds) {
  - return false;
  - }
  + // Show an ad after this many posts at the beginning of the feed.
  + const firstAd = 2;
  +
  + // Show an ad every X posts thereafter.
  + const adGap = 5;
  +
  + // Only show a max of this many ads in the feed.
  + const totalAds = 4;
  index = index + 1;
  - if (index === 2 || (index - 2) % 5 === 0) {
  - return true;
  - }
  + if (!this.shouldShowAds || index >= adGap * totalAds + firstAd) {
  return false;
  }
  + return index === firstAd || (index - firstAd) % adGap === 0;
  + }
  +
  onPostEdited(post: FiresidePost) {
  this.feed.update(post);
  this.$emit('postedited', post);
  