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:
parent
694b6cbc91
commit
66c57c6fdf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user