5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-17 22:27:08 +00:00

create ReadRibbon on Story creation

This commit is contained in:
Peter Bhat Harkins 2018-01-31 11:14:39 -06:00
parent 694b6cbc91
commit 66c57c6fdf

View File

@ -19,6 +19,7 @@ class StoriesController < ApplicationController
if @story.valid? && !(@story.already_posted_story && !@story.seen_previous)
if @story.save
ReadRibbon.where(user: @user, story: @story).first_or_create
return redirect_to @story.comments_path
end
end